Navigation
API > API/Plugins > API/Plugins/ControlRig
Inheritance Hierarchy
- AActor
- IViewportSelectableObject
- AControlRigShapeActor
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/ControlRigGizmoActor.h |
| Include | #include "ControlRigGizmoActor.h" |
Syntax
UCLASS (NotPlaceable, Transient)
class AControlRigShapeActor :
public AActor,
public IViewportSelectableObject
Remarks
An actor used to represent a rig control
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class USceneComponent > | ActorRootComponent | This is the one holding transform for the controls | |
| FName | ColorParameterName | The name of the color parameter on the material | |
| FName | ControlName | The name of the control this actor is referencing | |
| TWeakObjectPtr< UControlRig > | ControlRig | Control rig this actor is referencing we can have multiple control rig's visible | |
| uint32 | ControlRigIndex | The name of the control this actor is referencing | |
| FTransform | OffsetTransform | ||
| FLinearColor | OverrideColor | ||
| FName | ShapeName | The name of the shape to use on this actor | |
| TObjectPtr< class UStaticMeshComponent > | StaticMeshComponent | This is visual representation of the transform |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AControlRigShapeActor
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FRigElementKey | Returns the key of the control element this shape actor represents | ||
| FTransform | |||
| bool | IsEnabled () |
Get whether the control is enabled/disabled | |
| bool | IsHovered () |
Get whether the control is hovered | |
| bool | IsSelectable () |
Get wether the control is selectable/unselectable | |
| bool | Get whether the control is selected/unselected | ||
| void | OnEnabledChanged
(
bool bIsEnabled |
Event called when the enabled state of this control has changed | |
| void | OnHoveredChanged
(
bool bIsSelected |
Event called when the hovered state of this control has changed | |
| void | OnManipulatingChanged
(
bool bIsManipulating |
Event called when the manipulating state of this control has changed | |
| void | OnSelectionChanged
(
bool bIsSelected |
Event called when the selection state of this control has changed | |
| void | OnTransformChanged
(
const FTransform& NewTransform |
Event called when the transform of this control has changed | |
| void | SetEnabled
(
bool bInEnabled |
Set the control to be enabled/disabled | |
| void | SetGlobalTransform
(
const FTransform& InTransform |
This returns root component transform based on attach when there is no attach, it is based on 0 | |
| void | SetHovered
(
bool bInHovered |
Set the control to be hovered | |
| void | SetSelectable
(
bool bInSelectable |
Set the control to be selected/unselected | |
| void | SetSelected
(
bool bInSelected |
Set the control to be selected/unselected | |
| void | SetShapeColor
(
const FLinearColor& InColor |
Changes the shape color | |
| void | TickControl () |
Called from the edit mode each tick | |
| bool | UpdateControlSettings
(
ERigHierarchyNotification InNotif, |
Try to update the actor with the latest settings |