SetLocalToParentTranslation(int, in float3)
Sets the local to parent translation of the bone at the specified index.
Read time 1 minuteLast updated 5 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
SetLocalToParentTranslation(int, float3)
public void SetLocalToParentTranslation(int index, in float3 translation)
Parameters
The index of the translation channel. The first Skeleton.BoneCount translation channels are the bones, in the order of Skeleton.Ids.
Local to parent translation to set.
Remarks
The index must be at least 0 and less than AnimationStream.TranslationCount.