Documentation

Unity Engine

Download Unity

Unity Engine

SetRotation(int, in quaternion)

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

Definition

SetRotation(int, quaternion)

public void SetRotation(int index, in quaternion rotation)

Parameters

index

The index of the rotation channel to write.

rotation

The rotation to write to the rotation channel.

Remarks

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