class
Animation
public class Animation Contains one or multiple frames that can be played in sequence.
Constructors
Animation() Properties
| Name | Type | Description |
|---|---|---|
Name | String | The name of the animation. Allows you to play specific animations by name. |
FrameRate | Single | The speed of the animation in frames per second. |
Origin | Vector2 | The point at which the rendered sprite is anchored from. This means scaling/rotating a sprite will do so around the origin. |
LoopMode | LoopMode | The loop mode of the animation. This determines what should happen when the animation reaches the final frame in playback. |
Frames | List<Frame> | A list of frames that make up the animation. Each frame is a texture that will be displayed in sequence. |
IsAnimated | Boolean | True if we have more than one frame |