Protected
constructorLength of the animation in seconds.
Returns whether the animation was set to automatically play and loop.
If enabled, the animation will alternate between normal and reverse each time it loops.
Whether the animation plays in reverse.
Duplicates the AnimatedTextureFileProvider and returns the new copy. Can be used for playing the same animation at different offsets.
Returns the texture's aspect ratio, which is calculated as width / height.
Returns the index of the frame that is currently playing.
Returns how long the animation is in seconds.
Returns the number of frames in the animation.
Returns the height of the texture in pixels.
Returns the name of this object's type.
Returns the width of the texture in pixels.
Returns whether the animation is finished playing.
Returns true if the object matches or derives from the passed in type.
Returns whether the animation is currently paused.
Returns whether the animation is currently playing.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Pauses the animation.
Pauses the animation at frame frameIndex
.
Plays the animation loops
times, starting with an offset of offset
seconds.
Start playing the animation from frame frameIndex
, loops
times.
Resumes a paused animation from the frame that was last played.
Sets the callback function to be called whenever the animation stops playing.
Stops the animation.
Provider for animated texture resource.
Remarks
Can be accessed from Texture.Control on an animated texture.
See
2D Animation Guide.
Example