Documentation

Unity Engine

Download Unity

Unity Engine

SetLocalToParentTR(int, in float3, in quaternion)

Sets the local to parent translation and rotation of the bone at the specified index.
Read time 1 minuteLast updated 4 hours ago

Definition

SetLocalToParentTR(int, float3, quaternion)

public void SetLocalToParentTR(int index, in float3 translation, in quaternion rotation)

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 translation to set.

rotation

The local to parent rotation to set.