UViewportWorldInteraction::UpdateDragging

Called by the world interaction system when one of our components is dragged by the user.

Windows
MacOS
Linux

References

Module

ViewportInteraction

Header

/Engine/Source/Editor/ViewportInteraction/Public/ViewportWorldInteraction.h

Include

#include "ViewportWorldInteraction.h"

Syntax

void UpdateDragging
(
    const float DeltaTime,
    bool & bIsFirstDragUpdate,
    UViewportInteractor * Interactor,
    const EViewportInteractionDraggingMode DraggingMode,
    class UViewportDragOperation * DragOperation,
    const bool bWithTwoHands,
    const TOptional< FTransformGizmoHandlePlacement > OptionalHandlePlacement,
    const FVector & DragDelta,
    const FVector & OtherHandDragDelta,
    const FVector & DraggedTo,
    const FVector & OtherHandDraggedTo,
    const FVector & DragDeltaFromStart,
    const FVector & OtherHandDragDeltaFromStart,
    const FVector & LaserPointerStart,
    const FVector & LaserPointerDirection,
    const float LaserPointerMaxLength,
    const bool bIsLaserPointerValid,
    const FTransform & GizmoStartTransform,
    FTransform & GizmoLastTransform,
    FTransform & GizmoTargetTransform,
    FTransform & GizmoUnsnappedTargetTransform,
    const FTransform & GizmoInterpolationSnapshotTransform,
    const FBox & GizmoStartLocalBounds,
    const USceneComponent *const DraggingTransformGizmoComponent,
    FVector & GizmoSpaceFirstDragUpdateOffsetAlongAxis,
    FVector & DragDeltaFromStartOffset,
    ELockedWorldDragMode & LockedWorldDragMode,
    float & GizmoScaleSinceDragStarted,
    float & GizmoRotationRadiansSinceDragStarted,
    bool & bIsDrivingVelocityOfSimulatedTransformables,
    FVector & OutUnsnappedDraggedTo
)

Remarks

Called by the world interaction system when one of our components is dragged by the user. If null is passed in then we'll treat it as dragging the whole object (rather than a specific axis/handle)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss