Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchy > API/Plugins/ControlRig/Rigs/URigHierarchy/SetParentWeight
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h |
| Include | #include "Rigs/RigHierarchy.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchy.cpp |
bool SetParentWeight
&40;
FRigBaseElement &42; InChild,
const FRigBaseElement &42; InParent,
FRigElementWeight InWeight,
bool bInitial,
bool bAffectChildren
&41;
Remarks
Sets the weight of a parent below a multi parent element Returns true if changing the weight was successful
Parameters
| Name | Description |
|---|---|
| InChild | The multi parented element |
| InParent | The parent to look up the weight for |
| InWeight | The new weight to set for the parent |
| bInitial | If true the initial weights will be used |
| bAffectChildren | If set to false children will not move (maintain global). |