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