Documentation

Unity Engine

Download Unity

Unity Engine

GetLocalToParentRotation(int)

Returns the local to parent rotation of the bone at the specified index.
Read time 1 minuteLast updated 5 hours ago

Definition

public readonly quaternion GetLocalToParentRotation(int index)

Parameters

index

The index of the rotation channel. The first Skeleton.BoneCount rotation channels are the bones, in the order of Skeleton.Ids.

Returns

Type

Description

quaternionThe local to parent rotation.

Remarks

The index must be at least 0 and less than AnimationStream.RotationCount.