RootMotionBoneIndex
The index of the bone whose motion gives the root motion of a clip.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Field
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public int RootMotionBoneIndex
Remarks
The value is an index in Skeleton.Ids. RigBuilder.ToRigDefinition sets it to the bone that you set in RigBuilder.RootMotionBoneId, or to 0, the root bone, if you don't choose one. The value is if the rig has no skeleton.
-1ClipSampler.SampleRootMotion uses this bone when the clip has no root motion curves, and ClipSampler.SampleExtractingRootMotion removes the root motion from this bone.