Navigation
API > API/Plugins > API/Plugins/ControlRig
Switches an element to a new parent.
| Name | FRigUnit_SwitchParent |
| Type | struct |
| Header File | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Units/Execution/RigUnit_DynamicHierarchy.h |
| Include Path | #include "Units/Execution/RigUnit_DynamicHierarchy.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Switch Parent", Keywords="Children,Parent,Constraint,Space,Switch", Varying))
struct FRigUnit_SwitchParent : public FRigUnit_DynamicHierarchyBaseMutable
Inheritance Hierarchy
- FRigVMStruct → FRigUnit → FRigUnitMutable → FRigUnit_DynamicHierarchyBaseMutable → FRigUnit_SwitchParent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigUnit_SwitchParent() |
Units/Execution/RigUnit_DynamicHierarchy.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bMaintainGlobal | bool | If set to true the item will maintain its global transform, otherwise it will maintain local | Units/Execution/RigUnit_DynamicHierarchy.h |
|
| Child | FRigElementKey | The child to switch to a new parent | Units/Execution/RigUnit_DynamicHierarchy.h |
|
| Mode | ERigSwitchParentMode | Depending on this the child will switch to the world, back to its default or to the item provided by the Parent pin | Units/Execution/RigUnit_DynamicHierarchy.h |
|
| Parent | FRigElementKey | The optional parent to switch to. This is only used if the mode is set to 'Parent Item' | Units/Execution/RigUnit_DynamicHierarchy.h |
|
Functions
Public
Overridden from FRigVMStruct
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute() |
Units/Execution/RigUnit_DynamicHierarchy.h |