AnimationClip
info
AnimationClip inherits from Motion
Stores keyframe based animations.
Members
Properties
Name | Description |
---|---|
AnimationClip .empty | Returns true if the animation clip has no curves and no events. |
AnimationClip .events | Animation Events for this animation clip. |
AnimationClip .frameRate | Frame rate at which keyframes are sampled. (Read Only) |
AnimationClip .hasGenericRootTransform | Returns true if the Animation has animation on the root transform. |
AnimationClip .hasMotionCurves | Returns true if the AnimationClip has root motion curves. |
AnimationClip .humanMotion | Returns true if the animation contains curve that drives a humanoid rig. |
AnimationClip .legacy | Set to true if the AnimationClip will be used with the Legacy Animation component ( instead of the Animator ). |
AnimationClip .length | Animation length in seconds. (Read Only) |
AnimationClip .localBounds | AABB of this Animation Clip in local space of Animation component that it is attached too. |
AnimationClip .wrapMode | Sets the default wrap mode used in the animation state. |
Constructor
Name | Description |
---|---|
AnimationClip() | Creates a new animation clip. |
Methods
Name | Description |
---|---|
AnimationClip .AddEvent(evt) | Adds an animation event to the clip. |
AnimationClip .ClearCurves() | Clears all curves from the clip. |
AnimationClip .EnsureQuaternionContinuity() | Realigns quaternion keys to ensure shortest interpolation paths. |
AnimationClip .SampleAnimation(go, time) | Samples an animation at a given time for any animated properties. |
AnimationClip .SetCurve(relativePath, type, propertyName, curve) | Assigns the curve to animate a specific property. |
Inherited Members
Inherited Properties
Name | Description |
---|---|
AnimationClip .hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
AnimationClip .name | The name of the object. |
Inherited Methods
Name | Description |
---|---|
AnimationClip .GetInstanceID() | Returns the instance id of the object. |
Extra Detail
AnimationClip is used by Animation to play back animations. Unity AnimationClip