Author Topic: [Resolved] Have any sample about the SpriteAnimation?  (Read 1730 times)

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
[Resolved] Have any sample about the SpriteAnimation?
« on: January 17, 2014, 08:15:57 AM »
How to set the time every frame?
How to give the sprite name i want?
How to receive the play finish event?
« Last Edit: January 19, 2014, 11:11:14 AM by xiaoniaojjj »

UncleAcid

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: Have any sample about the SpriteAnimation?
« Reply #1 on: January 17, 2014, 09:20:23 AM »
Quote
How to set the time every frame?
I assume you mean the framerate, just set the framerate/FPS property
Quote
How to give the sprite name i want?
I assume you mean the prefix of the sprites, just set the namePrefix property
Quote
How to receive the play finish event?
Use a Coroutine or Update to check if(!spriteAnimation.IsPlaying){} after starting the animation