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