Свойство | Тип | Описание | |
---|---|---|---|
completionBehavior | AnimationCompletionBehavior | ||
delay | float | ||
frames | List |
||
totalDuration | float |
Метод | Описание | |
---|---|---|
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 | ||
Результат | System.Collections.Generic |
public SpriteAnimation ( List |
||
frames | List |
|
Результат | System.Collections.Generic |
public SpriteAnimation ( |
||
frame | ||
Результат | System.Collections.Generic |
public addFrame ( |
||
subtexture | Subtexture. | |
Результат |
public addFrames ( List |
||
subtextures | List |
Subtextures. |
Результат |
public setFps ( float fps ) : |
||
fps | float | |
Результат |
public setLoop ( bool loop ) : |
||
loop | bool | |
Результат |
public setOrigin ( |
||
origin | ||
Результат |
public setPingPong ( bool pingPong ) : |
||
pingPong | bool | |
Результат |
public AnimationCompletionBehavior completionBehavior | ||
Результат | AnimationCompletionBehavior |