Navigation
API > API/Editor > API/Editor/ViewportInteraction
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UGizmoHandleGroup
- UAxisGizmoHandleGroup
References
| Module | ViewportInteraction |
| Header | /Engine/Source/Editor/ViewportInteraction/Public/VIGizmoHandle.h |
| Include | #include "VIGizmoHandle.h" |
Syntax
class UGizmoHandleGroup : public USceneComponent
Remarks
Base class for gizmo handles
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class UViewportDragOperationComponent > | DragOperationComponent | ||
| TObjectPtr< UMaterialInterface > | GizmoMaterial | Gizmo material (opaque) | |
| TArray< FGizmoHandle > | Handles | All the StaticMeshes for this handle type | |
| TObjectPtr< class ABaseTransformGizmo > | OwningTransformGizmoActor | The actor transform gizmo owning this handlegroup | |
| TObjectPtr< UMaterialInterface > | TranslucentGizmoMaterial | Gizmo material (translucent) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor that sets up CDO properties |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMeshToHandles
(
UGizmoHandleMeshComponent* HandleMeshComponent, |
Adds the HandleMeshComponent to the Handles list | |
| UGizmoHandleMeshComponent * | CreateAndAddMeshHandle
(
UStaticMesh* HandleMesh, |
Creates handle meshcomponent and adds it to the Handles list | |
| UGizmoHandleMeshComponent * | CreateMeshHandle
(
UStaticMesh* HandleMesh, |
Helper function to create gizmo handle meshes | |
| FVector | GetAxisVector
(
const int32 AxisIndex, |
Static: Given an axis (0-2) and a facing direction, returns the vector normal for that axis | |
| int32 | GetDraggedHandleIndex
(
UStaticMeshComponent* DraggedMesh |
Finds the index of DraggedMesh in HandleMeshes | |
| UViewportDragOperationComponent * | |||
| FTransformGizmoHandlePlacement | GetHandlePlacement
(
const int32 X, |
Gets the handleplacement axes | |
| TArray< FGizmoHandle > & | GetHandles () |
Gets all the handles | |
| EGizmoHandleTypes | Gets the GizmoType for this Gizmo handle | ||
| bool | Gets if this handlegroup will be visible with the universal gizmo | ||
| int32 | MakeHandleIndex
(
const FTransformGizmoHandlePlacement HandlePlacement |
Makes a unique index for a handle | |
| FString | MakeHandleName
(
const FTransformGizmoHandlePlacement HandlePlacement |
Makes up a name string for a handle | |
| FTransformGizmoHandlePlacement | MakeHandlePlacementForIndex
(
const int32 HandleIndex |
Given the unique index, makes a handle | |
| void | SetGizmoMaterial
(
UMaterialInterface* Material |
Sets the Gizmo material | |
| void | SetOwningTransformGizmo
(
ABaseTransformGizmo* TransformGizmo |
Sets the owning transform gizmo for this handle group | |
| void | SetShowOnUniversalGizmo
(
const bool bShowHandleUniversal |
Sets if this handlegroup will be visible with the universal gizmo | |
| void | SetTranslucentGizmoMaterial
(
UMaterialInterface* Material |
Sets the translucent Gizmo material | |
| bool | Returns true if this type of handle is allowed with world space gizmos | ||
| void | UpdateGizmoHandleGroup
(
const FTransform& LocalToWorld, |
Updates the Gizmo handles, needs to be implemented by derived classes | |
| void | UpdateHandleColor
(
const int32 AxisIndex, |
Updates the colors of the dynamic material instances for the handle passed using its axis index | |
| void | UpdateVisibilityAndCollision
(
const EGizmoHandleTypes GizmoType, |
Default setting the visibility and collision for all the handles in this group |