Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Units > API/Plugins/ControlRig/Units/Hierarchy
Inheritance Hierarchy
- FRigVMStruct
- FRigUnit
- FRigUnitMutable
- FRigUnit_SetRotation
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Units/Hierarchy/RigUnit_SetTransform.h |
| Include | #include "Units/Hierarchy/RigUnit_SetTransform.h" |
Syntax
USTRUCT&40;
Meta&61;&40;DisplayName&61;"Set Rotation", Category&61;"Transforms", TemplateName&61;"Set Transform", DocumentationPolicy&61;"Strict", Keywords&61;"SetBoneRotation,SetControlRotation,SetInitialRotation,SetSpaceRotation,SetBoneOrientation,SetControlOrientation,SetInitialOrientation,SetSpaceOrientation,SetRotation,SetOrientation", NodeColor&61;"0, 0.364706, 1.0", Varying&41;&41;
struct FRigUnit_SetRotation : public FRigUnitMutable
Remarks
SetRotation is used to set a single rotation on hierarchy.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bInitial | Defines if the transform should be set as current (false) or initial (true). | |
| bool | bPropagateToChildren | If set to true children of affected items in the hierarchy will follow the transform change - otherwise only the parent will move. | |
| FCachedRigElement | CachedIndex | Used to cache the internally used index. | |
| FRigElementKey | Item | The item to set the rotation for | |
| ERigVMTransformSpace | Space | Defines if the rotation should be set in local or global space | |
| FQuat | Value | The new rotation of the given item. | |
| float | Weight | Defines how much the change will be applied. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigUnit
| Type | Name | Description | |
|---|---|---|---|
| FRigElementKey | DetermineSpaceForPin
(
const FString& InPinPath, |
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct | |
| FString | GetUnitLabel () |