Author Topic: about UISpriteAnimation,  (Read 1316 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
about UISpriteAnimation,
« on: January 11, 2017, 12:35:48 AM »
Can I preview the animation in unity without playing the scene?
And also, I want to give animation with transform changing, like, animating sprite and rotate that sprite. Is it possible in one script? And it is, how can I do that? Or If it's possible but not in one script, then how can I do that? Do I have to use animator and UISpriteAnimation at the same time?


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: about UISpriteAnimation,
« Reply #1 on: January 13, 2017, 10:20:52 PM »
Sprite animation script is a small example of how you can do sprite animations. To answer your question though, yes it's possible by marking the scripts as [ExecuteInEditMode] and making some other changes, but stock NGUI's scripts don't do this.

Look at TweenTransform. It will do position, rotation and scale animations all in one.