Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSource(int, ConstraintSource)

Sets a source at a specified index.
Read time 1 minuteLast updated 5 days ago

Definition

public void SetSource(int index, ConstraintSource source)

Parameters

index

The index of the source to set.

The source object and its weight.

Remarks

Throws ArgumentOutOfRangeException, if the index is invalid.