Version: 2018.2

IConstraint

interface in UnityEngine.Animations

Switch to Manual

Description

The common interface for constraint components.

Variables

constraintActiveActivate or deactivate the constraint.
lockedLock or unlock the offset and position at rest.
sourceCountGets the number of sources currently set on the component.
weightThe weight of the constraint component.

Public Functions

AddSourceAdd a constraint source.
GetSourceGets a constraint source by index.
GetSourcesGets the list of sources.
RemoveSourceRemoves a source from the component.
SetSourceSets a source at a specified index.
SetSourcesSets the list of sources on the component.