Inheritence

Summary

Represents a sprite resource that can be static or animated. Sprites are rendererd using the SpriteRenderer component.

Constructors

Sprite

Properties

Animations A list of animations that can be played. Some animations can consist of multiple frames. If a sprite is static, it will only contain a single default animation.

Methods

GetAnimation Get an animation by its index. Returns null if out of bounds.
GetAnimationIndex Get the index of an animation by its name. Returns -1 if not found.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.