Documentation

Unity Engine

Download Unity

Unity Engine

GetRotation(int)

Returns a rotation value at the specified index.
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly quaternion GetRotation(int index)

Parameters

index

The index of the rotation channel to read.

Returns

Type

Description

quaternionThe rotation.

Remarks

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