IConstraint
The common interface for constraint components.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Interface
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
public interface IConstraint
Properties
Property | Description |
|---|---|
| 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. |
Methods
Method | Description |
|---|---|
| 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. |