This version of Unity is unsupported.

IConstraint.SetSource

Declaration

public void SetSource(int index, Animations.ConstraintSource source);

Parameters

index The index of the source to set.
source The source object and its weight.

Description

Sets a source at a specified index.

Throws ArgumentOutOfRangeException, if the index is invalid.