|
TorqueScript Reference
|
Inherits AssetBase.
| Boolean getAnimationCycle | ( | ) |
Gets whether the animation cycles or not.
| Integer getAnimationFrameCount | ( | ) |
Gets the count of frame that compose the animation or optionally only the ones validated against the image asset.
| validatedFrames | - Whether to return only the validated frames or not. Optional: Default is false. |
| String getAnimationFrames | ( | ) |
Gets the frames that compose the animation or optionally only the ones validated against the image asset.
| validatedFrames | - Whether to return only the validated frames or not. Optional: Default is false. |
| Float getAnimationTime | ( | ) |
Gets the total time to cycle through all animation frames.
| String getImage | ( | ) |
Gets the image asset Id.
| Integer getNamedAnimationFrameCount | ( | ) |
Gets the count of named frames that compose the animation or optionally only the ones validated against the image asset.
| validatedFrames | - Whether to return only the validated frames or not. Optional: Default is false. |
| String getNamedAnimationFrames | ( | ) |
Gets the named frames that compose the animation or optionally only the ones validated against the image asset.
| validatedFrames | - Whether to return only the validated frames or not. Optional: Default is false. |
| Boolean getNamedCellsMode | ( | ) |
Gets whether the animation is using names for its cells.
| void setAnimationCycle | ( | bool | animationCycle | ) |
Sets whether the animation cycles or not.
| animationCycle | Whether the animation cycles or not. |
| void setAnimationFrames | ( | animationFrames | ) |
Sets the image frames that compose the animation.
| animationFrames | A set of image frames that compose the animation. |
| void setAnimationTime | ( | float | animationTime | ) |
Sets the total time to cycle through all animation frames.
| animationTime | The total time to cycle through all animation frames. |
| void setImage | ( | assetId | ) |
Sets the image asset Id.
| void setNamedAnimationFrames | ( | animationFrames | ) |
Sets the named image frames that compose the animation.
| animationFrames | A set of named image frames that compose the animation. |
| void setNamedCellsMode | ( | ) |
Sets whether the animation uses names for cells, instead of numerical index.
| namedCellsMode | True if it should be using named cells. |
1.8.10