Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: OnionFan on March 29, 2014, 12:07:42 PM

Title: Animation Sprite
Post by: OnionFan 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.
Title: Re: Animation Sprite
Post by: ArenMook 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".
Title: Re: Animation Sprite
Post by: OnionFan 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