Scripting API

AnimationClip

class in UnityEngine · UnityEngine.AnimationModule · inherits from Motion

14 of 18 of Unity's membersUnity's documentation
In Tassix

Keyframed curves on the properties of a GameObject and its children (by path): transform position, rotation (quaternion or Euler) and scale, float properties of components and script fields, object swaps (such as sprites), and events.

Properties 10

float averageDuration { get; }
bool empty { get; }
AnimationEvent[] events { get; set; }
float frameRate { get; set; }
bool hasGenericRootTransform { get; }
bool isLooping { get; }
bool legacy { get; set; }
float length { get; }
Bounds localBounds { get; set; }
WrapMode wrapMode { get; set; }

Methods 5

void AddEvent(AnimationEvent evt)
void ClearCurves()
void EnsureQuaternionContinuity()
void SampleAnimation(GameObject go, float time)

Poses a GameObject as the clip has it at a time.

void SetCurve(string relativePath, Type type, string propertyName, AnimationCurve? curve)

A float curve on a property ("m_LocalPosition.x", "localEulerAnglesRaw.y", a component's field) of an object at a path.

Not in Tassix yet 4

hasMotionCurves hasMotionFloatCurves hasRootCurves humanMotion