AnimatedSprite
Class in Zigurous.Animation
Declaration
public sealed class AnimatedSprite : MonoBehaviour
Description
Animates a series of sprites over time.
Properties
spriteRenderer | The sprite renderer component for the animation (Read only). |
sprites | The sprites that are rendered throughout the animation, in order. |
frameRate | The amount of frames per second that are rendered. |
nextFrameTime | The time at which the next frame will begin (Read only). |
frame | The current frame index (Read only). |
reversed | Animates the sprites in reverse order. |
loop | Whether the animation should loop back to the start after cycling through each sprite. |
Methods
Restart | Restarts the animation to the first frame. |