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