Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/URigHierarchyController
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool RemoveParent
(
FRigBaseElement* InChild, |
Removes an existing parent from an element in the hierarchy. | Rigs/RigHierarchyController.h | |
bool RemoveParent
(
FRigElementKey InChild, |
Removes an existing parent from an element in the hierarchy. | Rigs/RigHierarchyController.h |
|
RemoveParent(FRigBaseElement , FRigBaseElement , bool)
Description
Removes an existing parent from an element in the hierarchy. For elements that allow only one parent the element will be unparented (same as RemoveAllParents)
| Name | RemoveParent |
| 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 RemoveParent
(
FRigBaseElement * InChild,
FRigBaseElement * InParent,
bool bMaintainGlobalTransform
)
Returns true if successful.
Parameters
| Name | Remarks |
|---|---|
| InChild | The element to remove the parent for |
| InParent | The parent to remove |
| 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). |
RemoveParent(FRigElementKey, FRigElementKey, bool, bool, bool)
Description
Removes an existing parent from an element in the hierarchy. For elements that allow only one parent the element will be unparented (same as RemoveAllParents)
| Name | RemoveParent |
| 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 RemoveParent
(
FRigElementKey InChild,
FRigElementKey InParent,
bool bMaintainGlobalTransform,
bool bSetupUndo,
bool bPrintPythonCommand
)
Returns true if successful.
Parameters
| Name | Remarks |
|---|---|
| InChild | The key of the element to remove the parent for |
| InParent | The key of the parent to remove |
| 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 |