Enum TrackOffset
Describes what is used to set the starting position and orientation of each Animation Track.
Namespace: UnityEngine.Timeline
Syntax
public enum TrackOffset
Remarks
By default, each Animation Track uses ApplyTransformOffsets to start from a set position and orientation. To offset each Animation Track based on the current position and orientation in the scene, use ApplySceneOffsets.
Fields
Name | Description | Value |
---|---|---|
ApplyTransformOffsets | Use this setting to offset each Animation Track based on a set position and orientation. |
0 |
ApplySceneOffsets | Use this setting to offset each Animation Track based on the current position and orientation in the scene. |
1 |
Auto | Use this setting to offset root transforms based on the state of the animator. Only use this setting to support legacy Animation Tracks. This mode may be deprecated in a future release. In Auto mode, when the animator bound to the animation track contains an AnimatorController, it offsets all animations similar to ApplySceneOffsets. If no controller is assigned, then all offsets are set to start from a fixed position and orientation, similar to ApplyTransformOffsets. In Auto mode, in most cases, root transforms are not affected by local scale or Animator.humanScale, unless the animator has an AnimatorController and Animator.applyRootMotion is set to true. |
2 |