Game Development Reference
In-Depth Information
Next, we'll need the images for our buttons. In the assets that accompany this title, you
will find a
button1.png
spritesheet that contains four button highlights, as shown in
the following screenshot:
Add this to the project in the
UI
folder under
Assets\Sprites\
from the assets in-
cluded with this title, set
Sprite Mode
to
Multiple
, and open up
Sprite Editor
. Next, use
the
Grid
slicing mode and set both the pixel size settings for
X
and
Y
to
128
; this gives us
a nice 2 x 2 split of the sprite with our four button images as shown in the following
screenshot: