Documentation

Unity Engine

Download Unity

Unity Engine

SetLocalToCharacterTranslation(int, in float3)

Sets the local to character translation of the bone at the specified index.
Read time 1 minuteLast updated 5 hours ago

Definition

SetLocalToCharacterTranslation(int, float3)

public void SetLocalToCharacterTranslation(int index, in float3 translation)

Parameters

index

The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.

translation

The local to character translation to set.

Remarks

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