Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetRotationOffset(int, Vector3)

Sets the rotation offset associated with a source by index.
Read time 1 minuteLast updated 7 days ago

Definition

public void SetRotationOffset(int index, Vector3 value)

Parameters

index

The index of the constraint source.

value

The new rotation offset.

Remarks

Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeException, if the index is invalid.