Book Image

NGUI for Unity

By : Charles Bernardoff
Book Image

NGUI for Unity

By: Charles Bernardoff

Overview of this book

Table of Contents (14 chapters)

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:


You may either create them yourself, or download the file from

If you wish to create your own sprites, a size of 128 x 128 will be enough. You can save them either as .png to support transparency, or as .psd files—they will be converted to the correct format when they will be imported in the Unity project.

Adding sprites to Atlas

When your Bomb...