Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Units > API/Plugins/ControlRig/Units/Execution
Inheritance Hierarchy
- FRigVMStruct
- FRigUnit
- FRigUnitMutable
- FRigUnit_DynamicHierarchyBaseMutable
- FRigUnit_SwitchParent
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Units/Execution/RigUnit_DynamicHierarchy.h |
| Include | #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
Remarks
Switches an element to a new parent.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bMaintainGlobal | If set to true the item will maintain its global transform, otherwise it will maintain local | |
| FRigElementKey | Child | The child to switch to a new parent | |
| ERigSwitchParentMode | Mode | Depending on this the child will switch to the world, back to its default or to the item provided by the Parent pin | |
| FRigElementKey | Parent | The optional parent to switch to. This is only used if the mode is set to 'Parent Item' |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct |