SetRotation(int, in quaternion)
Sets the rotation value at the specified index.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
SetRotation(int, quaternion)
public void SetRotation(int index, in quaternion rotation)
Parameters
The index of the rotation channel to write.
The rotation to write to the rotation channel.
Remarks
The index must be at least 0 and less than AnimationStream.RotationCount.