![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
void | Reset () |
void | PlayInReverse () |
bool | GetNextFrame (ref Vector2 uv) |
Vector2[] | BuildUVAnim (Vector2 start, Vector2 cellSize, int cols, int rows, int totalCells, float fps) |
void | SetAnim (Vector2[] anim) |
void | AppendAnim (Vector2[] anim) |
Public Attributes | |
string | name |
int | loopCycles = 0 |
bool | loopReverse = false |
float | framerate |
Protected Attributes | |
Vector2[] | frames |
int | curFrame = 0 |
int | stepDir = 1 |
int | numLoops = 0 |
Definition at line 86 of file SpriteManager.cs.
void UVAnimation.AppendAnim | ( | Vector2[] | anim | ) |
Definition at line 206 of file SpriteManager.cs.
References frames.
Vector2 [] UVAnimation.BuildUVAnim | ( | Vector2 | start, |
Vector2 | cellSize, | ||
int | cols, | ||
int | rows, | ||
int | totalCells, | ||
float | fps | ||
) |
Definition at line 174 of file SpriteManager.cs.
References frames.
bool UVAnimation.GetNextFrame | ( | ref Vector2 | uv | ) |
Definition at line 121 of file SpriteManager.cs.
References curFrame, numLoops, and stepDir.
Referenced by Sprite.StepAnim().
void UVAnimation.PlayInReverse | ( | ) |
Definition at line 112 of file SpriteManager.cs.
Referenced by Sprite.PlayAnimInReverse().
void UVAnimation.Reset | ( | ) |
Definition at line 103 of file SpriteManager.cs.
Referenced by Sprite.PlayAnim(), and Sprite.PlayAnimInReverse().
void UVAnimation.SetAnim | ( | Vector2[] | anim | ) |
Definition at line 199 of file SpriteManager.cs.
|
protected |
Definition at line 91 of file SpriteManager.cs.
Referenced by GetNextFrame().
float UVAnimation.framerate |
Definition at line 98 of file SpriteManager.cs.
Referenced by Sprite.PlayAnim(), and Sprite.PlayAnimInReverse().
|
protected |
Definition at line 88 of file SpriteManager.cs.
Referenced by AppendAnim(), and BuildUVAnim().
int UVAnimation.loopCycles = 0 |
Definition at line 96 of file SpriteManager.cs.
bool UVAnimation.loopReverse = false |
Definition at line 97 of file SpriteManager.cs.
string UVAnimation.name |
Definition at line 95 of file SpriteManager.cs.
|
protected |
Definition at line 93 of file SpriteManager.cs.
Referenced by GetNextFrame().
|
protected |
Definition at line 92 of file SpriteManager.cs.
Referenced by GetNextFrame().