文档

Unity Engine

Unity Engine

SetSource(int, ConstraintSource)

Sets a source at a specified index.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.