Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/URigHierarchyController
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SetParent
(
FRigBaseElement* InChild, |
Sets a new parent to an element. | Rigs/RigHierarchyController.h | |
bool SetParent
(
FRigElementKey InChild, |
Sets a new parent to an element. | Rigs/RigHierarchyController.h |
|
SetParent(FRigBaseElement , FRigBaseElement , bool)
Description
Sets a new parent to an element. For elements that allow more than one parent the parent list will be replaced.
| Name | SetParent |
| Type | function |
| Header File | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include Path | #include "Rigs/RigHierarchyController.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchyController.cpp |
bool SetParent
(
FRigBaseElement * InChild,
FRigBaseElement * InParent,
bool bMaintainGlobalTransform
)
Returns true if successful.
Parameters
| Name | Remarks |
|---|---|
| InChild | The element to set the parent for |
| InParent | The new parent to set |
| bMaintainGlobalTransform | If set to true the child will stay in the same place spatially, otherwise it will maintain it's local transform (and potential move). |
SetParent(FRigElementKey, FRigElementKey, bool, bool, bool)
Description
Sets a new parent to an element. For elements that allow more than one parent the parent list will be replaced.
| Name | SetParent |
| Type | function |
| Header File | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include Path | #include "Rigs/RigHierarchyController.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchyController.cpp |
UFUNCTION (BlueprintCallable, Category=URigHierarchyController)
bool SetParent
(
FRigElementKey InChild,
FRigElementKey InParent,
bool bMaintainGlobalTransform,
bool bSetupUndo,
bool bPrintPythonCommand
)
Returns true if successful.
Parameters
| Name | Remarks |
|---|---|
| InChild | The key of the element to set the parent for |
| InParent | The key of the new parent to set |
| bMaintainGlobalTransform | If set to true the child will stay in the same place spatially, otherwise it will maintain it's local transform (and potential move). |
| bSetupUndo | If set to true the stack will record the change for undo / redo |
| bPrintPythonCommand | If set to true a python command equivalent to this call will be printed out |