AnimatedSprite


Declaration

public sealed class AnimatedSprite : MonoBehaviour

Description

Animates a series of sprites over time.

Properties

spriteRendererThe sprite renderer component for the animation (Read only).
spritesThe sprites that are rendered throughout the animation, in order.
frameRateThe amount of frames per second that are rendered.
nextFrameTimeThe time at which the next frame will begin (Read only).
frameThe current frame index (Read only).
reversedAnimates the sprites in reverse order.
loopWhether the animation should loop back to the start after cycling through each sprite.

Methods

RestartRestarts the animation to the first frame.