Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTranslationOffset(int)

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

Definition

public Vector3 GetTranslationOffset(int index)

Parameters

index

The index of the constraint source.

Returns

Type

Description

Vector3The translation offset.

Remarks

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