Author Topic: Sprite Sheet  (Read 5210 times)

united4life

  • Guest
Sprite Sheet
« on: February 06, 2013, 12:44:59 AM »
For Sprite sheet which script should i use? I tried UISprite and UISpriteAnimation scripts but in that there is no options for rows, columns etc.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprite Sheet
« Reply #1 on: February 06, 2013, 11:52:45 AM »
There isn't any. NGUI is a UI system, not a sprite animation system. You can do some basic sprite animations using UISpriteAnimation, but NGUI is really not intended to be a full-blown sprite animation solution.

P.S. You could set up your own very easily btw -- use a UITexture to draw a sprite sheet texture, and have a custom script set up the UVs based on what you want them to be. It's a couple of lines of code.
« Last Edit: February 06, 2013, 11:56:07 AM by ArenMook »

dehinrsu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Sprite Sheet
« Reply #2 on: April 08, 2015, 08:04:49 PM »
Hi united4life,


Sprite Animation using NGUI:
https://www.youtube.com/watch?v=ys60bEIa2zA

The video demonstrates the following:
1. How to import a sprite sheet into NGUI
2. How to import a Unity Sprite (Multiple mode) into NGUI
3. Create animation clips (Sprite animations)
4. Attach this animation clip to an NGUI sprite.

I hope this will be useful to you...

Thanks
Vijay
dehinrsu@gmail.com