Very simple sprite animation. Attach to a sprite and specify a common prefix such as "idle" and it will cycle through them.
More...
|
virtual void | Start () |
| Rebuild the sprite list first thing. More...
|
|
virtual void | Update () |
| Advance the sprite animation process. More...
|
|
Very simple sprite animation. Attach to a sprite and specify a common prefix such as "idle" and it will cycle through them.
void UISpriteAnimation.Pause |
( |
| ) |
|
void UISpriteAnimation.Play |
( |
| ) |
|
Reset the animation to the beginning.
void UISpriteAnimation.RebuildSpriteList |
( |
| ) |
|
Rebuild the sprite list after changing the sprite name.
void UISpriteAnimation.ResetToBeginning |
( |
| ) |
|
Reset the animation to frame 0 and activate it.
virtual void UISpriteAnimation.Start |
( |
| ) |
|
|
protectedvirtual |
Rebuild the sprite list first thing.
virtual void UISpriteAnimation.Update |
( |
| ) |
|
|
protectedvirtual |
Advance the sprite animation process.
bool UISpriteAnimation.mActive = true |
|
protected |
float UISpriteAnimation.mDelta = 0f |
|
protected |
int UISpriteAnimation.mFPS = 30 |
|
protected |
int UISpriteAnimation.mIndex = 0 |
|
protected |
bool UISpriteAnimation.mLoop = true |
|
protected |
string UISpriteAnimation.mPrefix = "" |
|
protected |
bool UISpriteAnimation.mSnap = true |
|
protected |
List<string> UISpriteAnimation.mSpriteNames = new List<string>() |
|
protected |
int UISpriteAnimation.frames |
|
get |
Number of frames in the animation.
int UISpriteAnimation.framesPerSecond |
|
getset |
bool UISpriteAnimation.isPlaying |
|
get |
Returns is the animation is still playing or not
bool UISpriteAnimation.loop |
|
getset |
Set the animation to be looping or not
string UISpriteAnimation.namePrefix |
|
getset |
Set the name prefix used to filter sprites from the atlas.
The documentation for this class was generated from the following file: