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 |
UFUNCTION (BlueprintCallable,
Category="Editor Scripting | Sequencer Tools | Control Rig | Constraints")
static bool AddConstraint
(
UWorld * InWorld,
UTransformableHandle * InParentHandle,
UTransformableHandle * InChildHandle,
UTickableTransformConstraint * InConstraint,
const bool bMaintainOffset
)
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 |