IConstraint
interface in UnityEngine.Animations
Description 描述
The common interface for constraint components.
Properties 属性
| constraintActive | Activate or deactivate the constraint. | ||
| locked | Lock or unlock the offset and position at rest. | ||
| sourceCount | Gets the number of sources currently set on the component. | ||
| weight | The weight of the constraint component. |
Public Methods 公共方法
| AddSource | Add a constraint source. | ||
| GetSource | Gets a constraint source by index. | ||
| GetSources | Gets the list of sources. | ||
| RemoveSource | Removes a source from the component. | ||
| SetSource | Sets a source at a specified index. | ||
| SetSources | Sets the list of sources on the component. |