Documentation

Unity Engine

Unity Engine

SetSource(int, ConstraintSource)

Sets a source at a specified index.
Read time 1 minuteLast updated a month 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.