Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IConstraint

The common interface for constraint components.
Read time 1 minuteLast updated 4 days ago

Definition

public interface IConstraint

Properties

Property

Description

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.

Methods

Method

Description

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.