s&box docs

public class Sandbox.Sprite.Animation

Contains one or multiple frames that can be played in sequence.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Properties

Showing 6 properties

public float Sandbox.Sprite.Animation.FrameRate { get; set; }

The speed of the animation in frames per second.

public System.Collections.Generic.List`1<Sandbox.Sprite.Frame> Sandbox.Sprite.Animation.Frames { get; set; }

A list of frames that make up the animation. Each frame is a texture that will be displayed in sequence.

public bool Sandbox.Sprite.Animation.IsAnimated { get; set; }

True if we have more than one frame

public Sandbox.Sprite.LoopMode Sandbox.Sprite.Animation.LoopMode { get; set; }

The loop mode of the animation. This determines what should happen when the animation reaches the final frame in playback.

public string Sandbox.Sprite.Animation.Name { get; set; }

The name of the animation. Allows you to play specific animations by name.

public Vector2 Sandbox.Sprite.Animation.Origin { get; set; }

The point at which the rendered sprite is anchored from. This means scaling/rotating a sprite will do so around the origin.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Sprite.Animation

On this page