Class AnimationTrack
A Timeline track used for playing back animations on an Animator.
Inherited Members
Namespace: UnityEngine.Timeline
Assembly: solution.dll
Syntax
[Serializable]
[TrackClipType(typeof(AnimationPlayableAsset), false)]
[TrackBindingType(typeof(Animator))]
[ExcludeFromPreset]
public class AnimationTrack : TrackAsset, IPlayableAsset, IPropertyPreview, ISerializationCallbackReceiver, ILayerable
Properties
| Name | Description |
|---|---|
| applyAvatarMask | Specifies whether to apply the AvatarMask to the track. |
| applyOffsets | Specifies whether to apply track offsets to all clips on the track. |
| avatarMask | Specifies the AvatarMask to be applied to all clips on the track. |
| eulerAngles | The euler angle representation of the rotation offset of the entire track. |
| inClipMode | Specifies whether the Animation Track has clips, or is in infinite mode. |
| infiniteClip | An AnimationClip storing the data for an infinite track. |
| infiniteClipOffsetEulerAngles | The euler angle representation of the rotation offset of the track when in infinite mode. |
| infiniteClipOffsetPosition | The translation offset of a track in infinite mode. |
| infiniteClipOffsetRotation | The rotation offset of a track in infinite mode. |
| infiniteClipPostExtrapolation | The saved state of post-extrapolation for clips when converted to infinite mode. |
| infiniteClipPreExtrapolation | The saved state of pre-extrapolation for clips converted to infinite mode. |
| matchTargetFields | Specifies which fields to match when aligning offsets of clips. |
| outputs | Returns a description of the PlayableOutputs that will be created by this track. |
| position | The translation offset of the entire track. |
| rotation | The rotation offset of the entire track, expressed as a quaternion. |
| trackOffset | Specifies what is used to set the starting position and orientation of an Animation Track. |
Methods
| Name | Description |
|---|---|
| CalculateItemsHash() | |
| CreateClip(AnimationClip) | Creates a TimelineClip on this track that uses an AnimationClip. |
| CreateInfiniteClip(string) | Creates an AnimationClip that stores the data for an infinite track. |
| CreateRecordableClip(string) | Creates a TimelineClip, AnimationPlayableAsset and an AnimationClip. Use this clip to record in a timeline. |
| GatherProperties(PlayableDirector, IPropertyCollector) | Called by the Timeline Editor to gather properties requiring preview. |
| OnCreateClip(TimelineClip) | Used to initialize default values on a newly created clip |