Property | Type | Description | |
---|---|---|---|
completionBehavior | AnimationCompletionBehavior | ||
delay | float | ||
frames | List |
||
totalDuration | float |
Method | Description | |
---|---|---|
SpriteAnimation ( ) : System.Collections.Generic | ||
SpriteAnimation ( List |
||
SpriteAnimation ( |
||
addFrame ( |
adds a frame to this animation
|
|
addFrames ( List |
adds multiple frames to this animation
|
|
prepareForUse ( ) : void |
called by SpriteT to calculate the secondsPerFrame and totalDuration based on the loop details and frame count
|
|
setFps ( float fps ) : |
||
setLoop ( bool loop ) : |
||
setOrigin ( |
sets the origin for all frames in this animation
|
|
setPingPong ( bool pingPong ) : |
public SpriteAnimation ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public SpriteAnimation ( List |
||
frames | List |
|
return | System.Collections.Generic |
public SpriteAnimation ( |
||
frame | ||
return | System.Collections.Generic |
public addFrame ( |
||
subtexture | Subtexture. | |
return |
public addFrames ( List |
||
subtextures | List |
Subtextures. |
return |
public setFps ( float fps ) : |
||
fps | float | |
return |
public setLoop ( bool loop ) : |
||
loop | bool | |
return |
public setOrigin ( |
||
origin | ||
return |
public setPingPong ( bool pingPong ) : |
||
pingPong | bool | |
return |
public AnimationCompletionBehavior completionBehavior | ||
return | AnimationCompletionBehavior |