struct AnimationClipState

Contains information about a currently playing animation clip.

Public

Constructors

AnimationClipState

AnimationClipState() = default

Fields

Layer

u32 Layer

Layer the clip is playing on.

Multiple clips can be played simulatenously on different layers.

Time

float Time

Current time the animation is playing from.

Speed

float Speed

Speed at which the animation is playing.

Weight

float Weight

Determines how much of an influence does the clip have on the final pose.

WrapMode

Determines what happens to other animation clips when a new clip starts playing.

Stopped

bool Stopped

Determines should the time be advanced automatically.

Certain type of animation clips don't involve playback (e.g. for blending where animation weight controls the animation).