Navigation
API > API/Editor > API/Editor/ViewportInteraction
Represents a single virtual hand
| Name | FViewportInteractorData |
| Type | struct |
| Header File | /Engine/Source/Editor/ViewportInteraction/Public/ViewportInteractorData.h |
| Include Path | #include "ViewportInteractorData.h" |
Syntax
struct FViewportInteractorData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FViewportInteractorData() |
Default constructor for FVirtualHand that initializes safe defaults | ViewportInteractorData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDraggingWithGrabberSphere | bool | True if we're dragging using the grabber sphere, or false if we're using the laser (or world movement) | ViewportInteractorData.h | |
| bHitResultIsPriorityType | bool | If the latest hitresult is hovering over a priority type | ViewportInteractorData.h | |
| bIsDrivingVelocityOfSimulatedTransformables | bool | While dragging, true if we're dragging at least one simulated object that we're driving the velocities of. | ViewportInteractorData.h | |
| bIsFirstDragUpdate | bool | True if this is the first update since we started dragging | ViewportInteractorData.h | |
| bWasAssistingDrag | bool | True if we were assisting the other hand's drag the last time we did anything. | ViewportInteractorData.h | |
| ClickingOnComponent | TWeakObjectPtr< UActorComponent > | General input True if we're currently holding the 'SelectAndMove' button down after clicking on an actor | ViewportInteractorData.h | |
| DraggingMode | EViewportInteractionDraggingMode | Object/world movement What we're currently dragging with this hand, if anything | ViewportInteractorData.h | |
| DraggingTransformGizmoComponent | TWeakObjectPtr< class USceneComponent > | The gizmo component we're dragging right now | ViewportInteractorData.h | |
| DragOperationComponent | TWeakObjectPtr< class UViewportDragOperationComponent > | The gizmo interaction we're doing with this hand | ViewportInteractorData.h | |
| DragRayLength | double | Length of the ray that's dragging | ViewportInteractorData.h | |
| DragRayLengthVelocity | double | How fast to adjust ray length every frame for inertial ray length changes | ViewportInteractorData.h | |
| DragTranslationVelocity | FVector | How fast to move selected objects every frame for inertial translation | ViewportInteractorData.h | |
| GizmoInterpolationSnapshotTransform | FTransform | A transform that we're interpolating from, toward the target transform. | ViewportInteractorData.h | |
| GizmoLastTransform | FTransform | Where the gizmo was last frame. This is used for interpolation and smooth snapping | ViewportInteractorData.h | |
| GizmoRotationRadiansSinceDragStarted | float | ViewportInteractorData.h | ||
| GizmoScaleSinceDragStarted | float | ViewportInteractorData.h | ||
| GizmoSpaceDragDeltaFromStartOffset | FVector | When dragging with an axis/plane constraint applied, this is the difference between the actual "delta from start" and the constrained "delta from start". | ViewportInteractorData.h | |
| GizmoSpaceFirstDragUpdateOffsetAlongAxis | FVector | For a single axis drag, this is the cached local offset where the laser pointer ray intersected the axis line on the first frame of the drag | ViewportInteractorData.h | |
| GizmoStartLocalBounds | FBox | Our gizmo bounds at the start of the interaction, in actor local space. | ViewportInteractorData.h | |
| GizmoStartTransform | FTransform | Transform gizmo interaction Where the gizmo was placed at the beginning of the current interaction | ViewportInteractorData.h | |
| GizmoTargetTransform | FTransform | Where the gizmo wants to be right now, with snaps applied. | ViewportInteractorData.h | |
| GizmoUnsnappedTargetTransform | FTransform | Where the gizmo wants to be right now, if no snaps were applied. | ViewportInteractorData.h | |
| GrabberSphereLocationAtDragStart | FVector | Where the grabber sphere center point was when we first started the drag | ViewportInteractorData.h | |
| HoverHapticCheckLastHoveredGizmoComponent | TWeakObjectPtr< class USceneComponent > | Gizmo handle that we hovered over last (used only for avoiding spamming of hover haptics!) | ViewportInteractorData.h | |
| HoveringOverTransformGizmoComponent | TWeakObjectPtr< class USceneComponent > | Gizmo component that we're hovering over, or nullptr if not hovering over any | ViewportInteractorData.h | |
| HoverLocation | TOptional< FVector > | Position the laser pointer impacted an interactive object at (UI, meshes, etc.) | ViewportInteractorData.h | |
| ImpactLocationAtDragStart | FVector | Grabber sphere or laser pointer impact location at the drag start | ViewportInteractorData.h | |
| InteractorTransformAtDragStart | FTransform | The transform of the interactor when we first started the drag | ViewportInteractorData.h | |
| LastDraggingMode | EViewportInteractionDraggingMode | What we were doing last. Used for inertial movement. | ViewportInteractorData.h | |
| LastDragOperation | UViewportDragOperation * | The last drag operation. | ViewportInteractorData.h | |
| LastDragToLocation | FVector | Location that we dragged to last frame (end point of the ray) | ViewportInteractorData.h | |
| LastHoveredActorComponent | TWeakObjectPtr< class UActorComponent > | The current component hovered by the laser pointer of this hand | ViewportInteractorData.h | |
| LastHoveredWidgetComponent | TWeakObjectPtr< UWidgetComponent > | Hover feedback The widget component we last hovered over. | ViewportInteractorData.h | |
| LastHoverLocationOverUI | FVector | The last location that we hovered over UI at in the world. | ViewportInteractorData.h | |
| LastRoomSpaceTransform | FTransform | Room space hand transform from the previous frame | ViewportInteractorData.h | |
| LastTransform | FTransform | Hand transform in world space from the previous frame | ViewportInteractorData.h | |
| LockedWorldDragMode | ELockedWorldDragMode | ViewportInteractorData.h | ||
| OptionalHandlePlacement | TOptional< FTransformGizmoHandlePlacement > | Which handle on the gizmo we're interacting with, if any | ViewportInteractorData.h | |
| RoomSpaceTransform | FTransform | Your hand transform, in the local tracking space (unaffected by world scaling) | ViewportInteractorData.h | |
| StartHitLocationToTransformableCenter | FVector | The offset between the hitlocation of the object selected to start dragging and its center. | ViewportInteractorData.h | |
| Transform | FTransform | Positional data Your hand (laser origin) in the virtual world in world space, usually driven by VR motion controllers | ViewportInteractorData.h |