O'Reilly logo

NGUI for Unity by Charles Bernardoff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding sprites to Atlas

Let's add some sprites to our new Game atlas. We will add the following three different types:

  • Simple sprite: As its name suggests, it is simply an image displayed on screen
  • Sliced sprite: In this, the image is sliced in nine parts and it is resizable without stretching corners
  • Tiled sprite: In this, the tiling pattern is repeatable indefinitely

Let's start with the Simple sprites.

Simple sprites

It is time to create two sprites, Bomb and Time, which will illustrate our powers. First, we need to create the sprites and add them to our Game atlas. They will look as shown in the following screenshot:

Simple sprites

Note

You may either create them ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required