Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSource(int)

Gets a constraint source by index.
Read time 1 minuteLast updated 5 days ago

Definition

public 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.