Class AnimationClip
Represents a timeline clip than plays back an Animation clip on an AnimationTrack
Inheritance
AnimationClip
Syntax
[Serializable]
public class AnimationClip : DOTSClip, ITimelineClipAsset, IAnimationMixerRootMotionInput, IAnimationClipNodeElement
Fields
AdditiveClipOptions
Options for how to choose the reference pose when the track plays this clip back as additive
Declaration
public AdditiveClipOptions AdditiveClipOptions
Field Value
Animation
The animation clip to play
Declaration
public UnityEngine.AnimationClip Animation
Field Value
Type |
Description |
UnityEngine.AnimationClip |
|
OffsetMode
Options for how the offsets are applied
Declaration
public RootOffsetMode OffsetMode
Field Value
PathColor
Declaration
Field Value
PlaybackOptions
The options for how the clip plays back
Declaration
public AnimationClipPlaybackOptions PlaybackOptions
Field Value
RootMotionOffsets
Root Motion offsets for this clip
Declaration
public RootMotionOffsets RootMotionOffsets
Field Value
RootMotionOptions
Options for playing back root transform
Declaration
public RootMotionOptions RootMotionOptions
Field Value
Properties
AdditiveOffset
Declaration
public RigidTransform AdditiveOffset { get; }
Property Value
Type |
Description |
RigidTransform |
|
Implements
ClipConfiguration
Returns the UberNode clip configuration used when building
Declaration
public ClipConfiguration ClipConfiguration { get; }
Property Value
Type |
Description |
ClipConfiguration |
|
duration
Declaration
public override double duration { get; }
Property Value
HasAnimatedRootMotion
Whether the assigned clip has animated root motion
Declaration
public bool HasAnimatedRootMotion { get; }
Property Value
Methods
Given a rig definition and a blending mode, generate the root motion input for this clip
Declaration
public void BuildRootMotionInput(BlobAssetStore store, BlobAssetReference<RigDefinition> rig, BlendingMode blendingMode)
Parameters
Type |
Name |
Description |
BlobAssetStore |
store |
|
BlobAssetReference<RigDefinition> |
rig |
|
BlendingMode |
blendingMode |
|
Implements
Get the root motion animation clip
Declaration
public void GetAnimatedRootMotion(BlobAssetStore store, out DiscreteTime timeOffset, out BlobAssetReference<AnimatedRigidTransformBlob> clip)
Parameters
Implements
GetClipNodeDescription(BlobAssetStore, BlobAssetReference<RigDefinition>, BlendingMode)
Given a RigDefinition and a BlendingMode, returns a partially configured ClipNode buffer element representing this clip.
Declaration
public CreateAnimationClipNodeElement GetClipNodeDescription(BlobAssetStore store, BlobAssetReference<RigDefinition> rig, BlendingMode mode)
Parameters
Type |
Name |
Description |
BlobAssetStore |
store |
|
BlobAssetReference<RigDefinition> |
rig |
|
BlendingMode |
mode |
|
Returns
Implements
Explicit Interface Implementations
The offset of the root motion
Declaration
RigidTransform IAnimationMixerRootMotionInput.ClipOffset { get; set; }
Returns
Type |
Description |
RigidTransform |
|
Implements
Declaration
RootOffsetMode IAnimationMixerRootMotionInput.RootOffsetMode { get; set; }
Returns
Implements
The transformation offset from the track transform to the clip
Declaration
RigidTransform IAnimationMixerRootMotionInput.TrackToClipOffset { get; set; }
Returns
Type |
Description |
RigidTransform |
|
Implements