Свойство | Type | Description | |
---|---|---|---|
completionBehavior | AnimationCompletionBehavior | ||
delay | float | ||
frames | List |
||
totalDuration | float |
Méthode | 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 | ||
Résultat | System.Collections.Generic |
public SpriteAnimation ( List |
||
frames | List |
|
Résultat | System.Collections.Generic |
public SpriteAnimation ( |
||
frame | ||
Résultat | System.Collections.Generic |
public addFrame ( |
||
subtexture | Subtexture. | |
Résultat |
public addFrames ( List |
||
subtextures | List |
Subtextures. |
Résultat |
public setFps ( float fps ) : |
||
fps | float | |
Résultat |
public setLoop ( bool loop ) : |
||
loop | bool | |
Résultat |
public setOrigin ( |
||
origin | ||
Résultat |
public setPingPong ( bool pingPong ) : |
||
pingPong | bool | |
Résultat |
public AnimationCompletionBehavior completionBehavior | ||
Résultat | AnimationCompletionBehavior |