Navigation
API > API/Editor > API/Editor/ViewportInteraction
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- ABaseTransformGizmo
References
| Module | ViewportInteraction |
| Header | /Engine/Source/Editor/ViewportInteraction/Public/VIBaseTransformGizmo.h |
| Include | #include "VIBaseTransformGizmo.h" |
Syntax
class ABaseTransformGizmo : public AActor
Remarks
Base class for transform gizmo
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< class UGizmoHandleGroup > > | AllHandleGroups | All gizmo components | |
| EGizmoHandleTypes | GizmoType | Current gizmo type | |
| TObjectPtr< USceneComponent > | SceneComponent | Scene component root of this actor | |
| FTimespan | SelectedAtTime | Real time that the gizmo was last attached to a selected set of objects. | |
| TObjectPtr< class UViewportWorldInteraction > | WorldInteraction | Owning object |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor that sets up CDO properties |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Updates the animation with the current time and selected time | ||
| void | GetBoundingBoxEdge
(
const FBox& Box, |
Static: Given a bounding box and information about which edge to query, returns the vertex positions of that edge | |
| EGizmoHandleTypes | GetGizmoType () |
Gets the current gizmo handle type | |
| UViewportDragOperationComponent * | GetInteractionType
(
UActorComponent* DraggedComponent, |
Called by the world interaction system when one of our components is dragged by the user to find out what type of interaction to do. | |
| UViewportWorldInteraction * | Gets the owner | ||
| bool | Gets if the gizmo shows measurement texts | ||
| void | Call this when new objects become selected. This triggers an animation transition. | ||
| void | SetOwnerWorldInteraction
(
UViewportWorldInteraction* InWorldInteraction |
Sets the owner | |
| void | UpdateGizmo
(
const EGizmoHandleTypes InGizmoType, |
Called by the world interaction system after we've been spawned into the world, to allow us to create components and set everything up nicely for the selected objects that we'll be used to manipulate | |
| void | UpdateHandleVisibility
(
const EGizmoHandleTypes InGizmoType, |
Updates the visibility of all the handles |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | IsEditorOnly () |
Called during saving to determine if the object is forced to be editor only or not |