Documentation

Unity Engine

Download Unity

Unity Engine

GetLocalToParentTRS(int, out float3, out quaternion, out float3)

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

Definition

GetLocalToParentTRS(int, float3, quaternion, float3)

public readonly void GetLocalToParentTRS(int index, out float3 translation, out quaternion rotation, out float3 scale)

Parameters

index

The index of the translation, rotation, and scale channels. The first Skeleton.BoneCount channels of each kind are the bones, in the order of Skeleton.Ids.

translation

The local to parent bone translation.

rotation

The local to parent rotation of the bone.

scale

The local to parent scale of the bone.