Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController > API/Plugins/ControlRig/Rigs/URigHierarchyController/RemoveParent
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include | #include "Rigs/RigHierarchyController.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchyController.cpp |
bool RemoveParent
&40;
FRigBaseElement &42; InChild,
FRigBaseElement &42; InParent,
bool bMaintainGlobalTransform
&41;
Remarks
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) Returns true if successful.
Parameters
| Name | Description |
|---|---|
| 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). |