Author Topic: Adding new sprites?  (Read 2564 times)

tyinus

  • Guest
Adding new sprites?
« on: August 21, 2012, 11:12:49 PM »
This seems like a silly question but I'm having trouble tracking down an answer...

I have NGUI and I can add a sprite widget to my panel. I can see the various sprite options ("dark", "button", "light", etc). How can I use my own 2D images, however? If I just want to add a simple png graphic (or other texture) as a sprite to my UI hierarchy how can I do that?


frog

  • Guest
Re: Adding new sprites?
« Reply #1 on: August 22, 2012, 02:14:25 AM »
I did this by adding the images to an atlas.
Then use a UIImageButton and select image from atlas.

dlewis

  • Guest
Re: Adding new sprites?
« Reply #2 on: August 22, 2012, 02:16:04 AM »
You should check out the video tutorials on how to use the atlas maker.