Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include | #include "Rigs/RigHierarchyController.h" |
UFUNCTION&40;BlueprintCallable, Category&61;URigHierarchyController,
Meta&61;&40;DisplayName&61;"Add Control", ScriptName&61;"AddControl"&41;&41;
FRigElementKey AddControl_ForBlueprint
&40;
FName InName,
FRigElementKey InParent,
FRigControlSettings InSettings,
FRigControlValue InValue,
bool bSetupUndo,
bool bPrintPythonCommand
&41;
Remarks
Adds a control to the hierarchy The key for the newly created control.
Parameters
| Name | Description |
|---|---|
| InName | The suggested name of the new control - will eventually be corrected by the namespace |
| InParent | The (optional) parent of the new control. If you don't need a parent, pass FRigElementKey() |
| InSettings | All of the control's settings |
| InValue | The value to use for the control |
| bSetupUndo | If set to true the stack will record the change for undo / redo |