Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchy
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 CanSwitchToParent
&40;
FRigElementKey InChild,
FRigElementKey InParent,
const TElementDependencyMap & InDependencyMap,
FString &42; OutFailureReason
&41;
Remarks
Determines if the element can be switched to a provided parent Returns true if changing the weight was successful
Parameters
| Name | Description |
|---|---|
| InChild | The key of the multi parented element |
| InParent | The key of the parent to look up the weight for |
| InDependencyMap | An additional map of dependencies to respect |
| OutFailureReason | An optional pointer to retrieve the reason for failure |