Navigation
API > API/Runtime > API/Runtime/Constraints > API/Runtime/Constraints/UConstraintsScriptingLibrary
References
| Module | Constraints |
| Header | /Engine/Source/Runtime/Experimental/Animation/Constraints/Public/ConstraintsScripting.h |
| Include | #include "ConstraintsScripting.h" |
| Source | /Engine/Source/Runtime/Experimental/Animation/Constraints/Private/ConstraintsScripting.cpp |
static bool AddConstraint
&40;
UWorld &42; InWorld,
UTransformableHandle &42; InParentHandle,
UTransformableHandle &42; InChildHandle,
UTickableTransformConstraint &42; InConstraint,
const bool bMaintainOffset
&41;
Remarks
Add Constraint to the system using the incoming parent and child handles with the specified type. return If constraint added correctly
Parameters
| Name | Description |
|---|---|
| InWorld | World to create the constraint |
| InParentHandle | The parent handle |
| InChildHandle | The child handle |
| InConsrtaint | The constraint |