struct AnimationState

Contains information about a single playing animation clip.

Public

Fields

Curves

SPtr<AnimationCurves> Curves

All curves in the animation clip.

Length

float Length

Total length of the animation clip in seconds (same as the length of the longest animation curve).

BoneToCurveMapping

AnimationCurveMapping * BoneToCurveMapping

Mapping of bone indices to curve indices for quick lookup .

SceneObjectToCurveMapping

AnimationCurveMapping * SceneObjectToCurveMapping

Mapping of scene object indices to curve indices for quick lookup.

PositionCaches

TCurveCache<Vector3> * PositionCaches

Cache used for evaluating position curves.

RotationCaches

TCurveCache<Quaternion> * RotationCaches

Cache used for evaluating rotation curves.

ScaleCaches

TCurveCache<Vector3> * ScaleCaches

Cache used for evaluating scale curves.

GenericCaches

TCurveCache<float> * GenericCaches

Cache used for evaluating generic curves.

Time

float Time

Time to evaluate the curve at.

Weight

float Weight

Determines how much of an influence will this clip have in regard to others in the same layer.

Loop

bool Loop

Determines should the animation loop (wrap) once ending or beginning frames are passed.

Disabled

bool Disabled

If true the clip state will not be evaluated.