Navigation
API > API/Plugins > API/Plugins/ControlRigEditor > API/Plugins/ControlRigEditor/UControlRigSequencerEditorLibrar-
References
| Module | ControlRigEditor |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Public/ControlRigSequencerEditorLibrary.h |
| Include | #include "ControlRigSequencerEditorLibrary.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/ControlRigSequencerEditorLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Sequencer Tools | Control Rig")
static UTickableConstraint * AddConstraint
(
UWorld * World,
ETransformConstraintType InType,
UTransformableHandle * InChild,
UTransformableHandle * InParent,
const bool bMaintainOffset
)
Remarks
Add a constraint possibly adding to sequencer also if one is open. Returns the constraint if created all nullptr if not
Parameters
| Name | Description |
|---|---|
| World | The active world |
| InType | Type of constraint to create |
| InChild | The handle to the transormable to be constrainted |
| InParent | The handle to the parent of the constraint |
| bMaintainOffset | Whether to maintain offset between child and parent when setting the constraint |