GetSource(int)
Gets a constraint source by index.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
public ConstraintSource GetSource(int index)
Parameters
The index of the source.
Returns
Type | Description |
|---|---|
| ConstraintSource | The source object and its weight. |
Remarks
Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeException, if the index is invalid.