Holds a collection of clips. More...
Public Member Functions | |
tk2dSpriteAnimationClip | GetClipByName (string name) |
Resolves an animation clip by name and returns a reference to it. | |
tk2dSpriteAnimationClip | GetClipById (int id) |
Resolves an animation clip by id and returns a reference to it. | |
int | GetClipIdByName (string name) |
Resolves an animation clip by name and returns a clipId. | |
int | GetClipIdByName (tk2dSpriteAnimationClip clip) |
Gets a clip id from a clip. | |
Public Attributes | |
tk2dSpriteAnimationClip[] | clips |
Array of clips | |
Properties | |
tk2dSpriteAnimationClip | FirstValidClip [get] |
The first valid clip in the animation collection. Null if no valid clips are found. |
Holds a collection of clips.
Resolves an animation clip by id and returns a reference to it.
tk2dSpriteAnimationClip tk2dSpriteAnimation.GetClipByName | ( | string | name | ) |
Resolves an animation clip by name and returns a reference to it.
name | Case sensitive clip name, as defined in tk2dSpriteAnimationClip. |
int tk2dSpriteAnimation.GetClipIdByName | ( | string | name | ) |
Resolves an animation clip by name and returns a clipId.
name | Case sensitive clip name, as defined in tk2dSpriteAnimationClip. |
Gets a clip id from a clip.
Array of clips
The first valid clip in the animation collection. Null if no valid clips are found.