interface in UnityEngine.Animations

Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.




The common interface for constraint components.


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 Methods

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.

Did you find this page useful? Please give it a rating: