Author Topic: Animation Sprite  (Read 1516 times)

OnionFan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Animation Sprite
« on: March 29, 2014, 12:07:42 PM »
How to animate a sprite without switching texture through UiSprite.spriteName? Maybe in UIPlayAnimation, but not very clear how to use it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Animation Sprite
« Reply #1 on: March 30, 2014, 07:05:53 AM »
UIPlayAnimation simply plays an animation in a TimeScale-independent fashion.

UISpriteAnimation is the script that shows how to do very basic sprite animation by specifying a prefix, such as "Idle", which will then find and loop through all sprites that begin with "Idle".

OnionFan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Animation Sprite
« Reply #2 on: March 30, 2014, 09:11:46 AM »
UIPlayAnimation simply plays an animation in a TimeScale-independent fashion.

UISpriteAnimation is the script that shows how to do very basic sprite animation by specifying a prefix, such as "Idle", which will then find and loop through all sprites that begin with "Idle".
Thanks, ArenMook