Property | Type | Description | |
---|---|---|---|
defaultAnim | int | ||
playAnimOnStart | bool |
Property | Type | Description | |
---|---|---|---|
animCompleteDelegate | AnimCompleteDelegate | ||
animFrameDelegate | AnimFrameDelegate | ||
animating | bool | ||
curAnimIndex | int | ||
framesToAdvance | int | ||
timeBetweenAnimFrames | float | ||
timeSinceLastFrame | float |
Method | Description | |
---|---|---|
AddSpriteResizedDelegate ( SpriteResizedDelegate del ) : void |
Adds the delegate to be called when the sprite is resized.
|
|
Clear ( ) : void |
Resets important sprite values to defaults for reuse.
|
|
Copy ( SpriteRoot, s ) : void | ||
Delete ( ) : void | ||
Hide ( bool tf ) : void | ||
IsAnimating ( ) : bool |
Returns whether the sprite is currently animating.
|
|
PauseAnim ( ) : void |
Pauses the currently-playing animation.
|
|
PlayAnim ( int index ) : void | ||
PlayAnim ( string name ) : void | ||
PlayAnimInReverse ( int index ) : void | ||
PlayAnimInReverse ( string name ) : void | ||
RemoveSpriteresizedDelegate ( SpriteResizedDelegate del ) : void |
Removes the specified delegate from the list of those to be called when the sprite is resized.
|
|
RevertToStatic ( ) : void |
Reverts the sprite to its static (non-animating) default appearance.
|
|
SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void |
Sets the delegate to be called upon animation completion.
|
|
SetAnimFrameDelegate ( AnimFrameDelegate del ) : void |
Sets the delegate to be called each frame of animation.
|
|
SetFramerate ( float fps ) : void |
Changes the framerate at which the current animation plays. NOTE: This only has effect if called AFTER PlayAnim() is called. Otherwise, PlayAnim() sets the framerate to whatever is specified in the animation itself.
|
|
SetSpriteResizedDelegate ( SpriteResizedDelegate del ) : void |
Sets the delegate to be called when the sprite is resized.
|
|
StepAnim ( float time ) : bool | ||
StopAnim ( ) : void |
Stops the current animation from playing and resets it to the beginning for playing again. The sprite then reverts to the static image.
|
Method | Description | |
---|---|---|
AddToAnimatedList ( ) : void | ||
Awake ( ) : void | ||
OnDisable ( ) : void | ||
OnEnable ( ) : void | ||
RemoveFromAnimatedList ( ) : void |
public AddSpriteResizedDelegate ( SpriteResizedDelegate del ) : void | ||
del | SpriteResizedDelegate | A delegate to be called when the sprite is resized. |
return | void |
public PlayAnimInReverse ( int index ) : void | ||
index | int | |
return | void |
public PlayAnimInReverse ( string name ) : void | ||
name | string | |
return | void |
public RemoveSpriteresizedDelegate ( SpriteResizedDelegate del ) : void | ||
del | SpriteResizedDelegate | The delegate to be removed. |
return | void |
public SetAnimCompleteDelegate ( AnimCompleteDelegate del ) : void | ||
del | AnimCompleteDelegate | The delegate to be called when an animation finishes playing. |
return | void |
public SetAnimFrameDelegate ( AnimFrameDelegate del ) : void | ||
del | AnimFrameDelegate | The delegate to be called each frame of animation. |
return | void |
public SetFramerate ( float fps ) : void | ||
fps | float | The new framerate, in frames per second. |
return | void |
public SetSpriteResizedDelegate ( SpriteResizedDelegate del ) : void | ||
del | SpriteResizedDelegate | The delegate to be called when the sprite is resized. |
return | void |
protected AnimCompleteDelegate animCompleteDelegate | ||
return | AnimCompleteDelegate |
protected AnimFrameDelegate animFrameDelegate | ||
return | AnimFrameDelegate |