Documentation

Unity Engine

Unity Engine

GetSource(int)

Gets a constraint source by index.
Read time 1 minuteLast updated 2 months ago

Definition

ConstraintSource GetSource(int index)

Parameters

index

The index of the source.

Returns

Type

Description

ConstraintSourceThe source object and its weight.

Remarks

Throws ArgumentOutOfRangeException, if the index is invalid.