Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController > API/Plugins/ControlRig/Rigs/URigHierarchyController/AddParent
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 AddParent
&40;
FRigBaseElement &42; InChild,
FRigBaseElement &42; InParent,
float InWeight,
bool bMaintainGlobalTransform,
bool bRemoveAllParents
&41;
Remarks
Adds a new parent to an element. For elements that allow only one parent the parent will be replaced (Same as ::SetParent). Returns true if successful.
Parameters
| Name | Description |
|---|---|
| InChild | The element to add the parent for |
| InParent | The new parent to add |
| InWeight | The initial weight to give to the parent |
| 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). |
| bRemoveAllParents | If set to true all parents of the child will be removed first. |