Свойство | Type | Description | |
---|---|---|---|
anim | tk2dSpriteAnimation, | ||
animationCompleteDelegate | AnimationCompleteDelegate | ||
animationEventDelegate | AnimationEventDelegate, | ||
clipId | int | ||
createCollider | bool | ||
playAutomatically | bool |
Méthode | Description | |
---|---|---|
AddComponent ( GameObject go, tk2dSpriteAnimation, anim, int clipId ) : tk2dAnimatedSprite, |
Adds a tk2dAnimatedSprite as a component to the gameObject passed in, setting up necessary parameters and building geometry.
|
|
GetClipIdByName ( string name ) : int |
Resolves an animation clip by name and returns a unique id. This is a convenient alias to tk2dSpriteAnimation.GetClipIdByName
|
|
LateUpdate ( ) : void | ||
OnCompleteAnimation ( ) : void | ||
Pause ( ) : void |
Pause the currently playing clip. Will do nothing if the clip is currently paused.
|
|
Play ( ) : void |
Play the active clip. Will restart the clip if called again. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( float clipStartTime ) : void |
Play the active clip, starting "clipStartTime" seconds into the clip. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( int id ) : void |
Play the clip specified by identifier. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( int clipId, float clipStartTime ) : void |
Play the clip specified by identifier. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( string name ) : void |
Play the specified clip. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( string name, float clipStartTime ) : void |
Play the specified clip, starting "clipStartTime" seconds into the clip. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( tk2dSpriteAnimationClip, clip, float clipStartTime ) : void |
Play the clip specified by identifier. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
Play ( tk2dSpriteAnimationClip, clip, float clipStartTime, float overrideFps ) : void |
Play the clip specified by identifier. Will restart the clip at clipStartTime if called while the clip is playing. No defaults to play nice with default MonoDevelop configuration.
|
|
PlayFromFrame ( int frame ) : void |
Play the active clip, starting at the frame specified. Will restart the clip at frame if called while the clip is playing.
|
|
PlayFromFrame ( int id, int frame ) : void |
Play the clip specified by identifier, starting at the specified frame. Will restart the clip at clipStartTime if called while the clip is playing.
|
|
PlayFromFrame ( string name, int frame ) : void |
Play the specified clip, starting at the frame specified. Will restart the clip at frame if called while the clip is playing.
|
|
ProcessEvents ( int start, int last, int direction ) : void | ||
Resume ( ) : void |
Resume the currently paused clip. Will do nothing if the clip hasn't been paused.
|
|
SetFrame ( int currFrame ) : void |
Sets the current frame. The animation will wrap if the selected frame exceeds the number of frames in the clip. This variant WILL trigger an event if the current frame has a trigger defined.
|
|
SetFrame ( int currFrame, bool triggerEvent ) : void |
Sets the current frame. The animation will wrap if the selected frame exceeds the number of frames in the clip.
|
|
SetFrameInternal ( int currFrame ) : void | ||
Stop ( ) : void |
Stop the currently playing clip.
|
|
StopAndResetFrame ( ) : void |
Stops the currently playing animation and reset to the first frame in the animation
|
|
WarpClipToLocalTime ( tk2dSpriteAnimationClip, clip, float time ) : void |
Méthode | Description | |
---|---|---|
NeedBoxCollider ( ) : bool |
Méthode | Description | |
---|---|---|
Start ( ) : void | ||
isPlaying ( ) : bool |
public static AddComponent ( GameObject go, tk2dSpriteAnimation, anim, int clipId ) : tk2dAnimatedSprite, | ||
go | GameObject | |
anim | tk2dSpriteAnimation, | |
clipId | int | |
Résultat | tk2dAnimatedSprite, |
public GetClipIdByName ( string name ) : int | ||
name | string | Case sensitive clip name, as defined in |
Résultat | int |
public Play ( int id ) : void | ||
id | int |
/// Use |
Résultat | void |
public Play ( int clipId, float clipStartTime ) : void | ||
clipId | int | |
clipStartTime | float | Clip start time in seconds. |
Résultat | void |
public Play ( string name ) : void | ||
name | string | /// Name of clip. Try to cache the animation clip Id and use that instead for performance. /// |
Résultat | void |
public Play ( string name, float clipStartTime ) : void | ||
name | string | Name of clip. Try to cache the animation clip Id and use that instead for performance. |
clipStartTime | float | Clip start time in seconds. |
Résultat | void |
public Play ( tk2dSpriteAnimationClip, clip, float clipStartTime ) : void | ||
clip | tk2dSpriteAnimationClip, | The clip to play. |
clipStartTime | float | Clip start time in seconds. A value of DefaultFps will start the clip from the beginning |
Résultat | void |
public Play ( tk2dSpriteAnimationClip, clip, float clipStartTime, float overrideFps ) : void | ||
clip | tk2dSpriteAnimationClip, | The clip to play. |
clipStartTime | float | Clip start time in seconds. A value of DefaultFps will start the clip from the beginning |
overrideFps | float | Overriden framerate of clip. Set to 0 to use default |
Résultat | void |
public PlayFromFrame ( int id, int frame ) : void | ||
id | int | Use |
frame | int | Frame to start from. |
Résultat | void |
public PlayFromFrame ( string name, int frame ) : void | ||
name | string | Name of clip. Try to cache the animation clip Id and use that instead for performance. |
frame | int | Frame to start playing from. |
Résultat | void |
public ProcessEvents ( int start, int last, int direction ) : void | ||
start | int | |
last | int | |
direction | int | |
Résultat | void |
public SetFrame ( int currFrame, bool triggerEvent ) : void | ||
currFrame | int | |
triggerEvent | bool | |
Résultat | void |
public SetFrameInternal ( int currFrame ) : void | ||
currFrame | int | |
Résultat | void |
public WarpClipToLocalTime ( tk2dSpriteAnimationClip, clip, float time ) : void | ||
clip | tk2dSpriteAnimationClip, | |
time | float | |
Résultat | void |
public AnimationCompleteDelegate animationCompleteDelegate | ||
Résultat | AnimationCompleteDelegate |
public AnimationEventDelegate, animationEventDelegate | ||
Résultat | AnimationEventDelegate, |