Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Units > API/Plugins/ControlRig/Units/Hierarchy
Inheritance Hierarchy
- FRigVMStruct
- FRigUnit
- FRigUnitMutable
- FRigUnit_ParentSwitchConstraintArray
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Units/Hierarchy/RigUnit_ParentSwitchConstraint.h |
| Include | #include "Units/Hierarchy/RigUnit_ParentSwitchConstraint.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Parent Switch Constraint", Category="Constraints", DocumentationPolicy="Strict", Keywords="SpaceSwitch", Deprecated="5.0"))
struct FRigUnit_ParentSwitchConstraintArray : public FRigUnitMutable
Remarks
The Parent Switch Constraint is used to have an item follow one of multiple parents, and allowing to switch between the parent in question.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCachedRigElement | CachedParent | Used to cache the internally used parent. | |
| FCachedRigElement | CachedSubject | Used to cache the internally used subject. | |
| FTransform | InitialGlobalTransform | The initial global transform for the subject | |
| int32 | ParentIndex | The parent index to use for constraining the subject | |
| TArray< FRigElementKey > | Parents | The list of parents to constrain to | |
| FTransform | RelativeOffset | The cached relative offset between subject and parent. | |
| FRigElementKey | Subject | The subject to constrain | |
| bool | Switched | Returns true if the parent has changed | |
| FTransform | Transform | The transform result (full without weighting) | |
| float | Weight | The weight of the change - how much the change should be applied |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct | |
| FRigVMStructUpgradeInfo |