Documentation

Unity Engine

Download Unity

Unity Engine

RootMotionBoneIndex

The index of the bone whose motion gives the root motion of a clip.
Read time 1 minuteLast updated 4 hours ago

Definition

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
-1
if the rig has no skeleton.
ClipSampler.SampleRootMotion uses this bone when the clip has no root motion curves, and ClipSampler.SampleExtractingRootMotion removes the root motion from this bone.