GetRotation(int)
Returns a rotation value at the specified index.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public readonly quaternion GetRotation(int index)
Parameters
The index of the rotation channel to read.
Returns
Type | Description |
|---|---|
| quaternion | The rotation. |
Remarks
The index must be at least 0 and less than AnimationStream.RotationCount.