FInViewportUIDragOperation::New

Create this Drag and Drop Content

Unreal Engine C++ API Reference > Editor > EditorFramework > Viewports > FInViewportUIDragOperation

References

   
Module EditorFramework
Header /Engine/Source/Editor/EditorFramework/Public/Viewports/InViewportUIDragOperation.h
Include #include "Viewports/InViewportUIDragOperation.h"
Source /Engine/Source/Editor/EditorFramework/Private/Viewports/InViewportUIDragOperation.cpp
static [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [FInViewportUIDragOperation](API\Editor\EditorFramework\Viewports\FInViewportUIDragOperation) > New
(
    const [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< class [SWidget](API\Runtime\SlateCore\Widgets\SWidget) > & InUIToBeDragged,
    const FVector2D InDecoratorOffset,
    const FVector2D & OwnerAreaSize,
    FOnInViewportUIDropped & InDropDelegate
)

Remarks

Create this Drag and Drop Content a new FDockingDragOperation

Parameters

Name Description
InUIToBeDragged The UI being dragged
InDecoratorOffset Where within the UI we grabbed, so we're not dragging by the upper left of the UI.
OwnerAreaSize Size of the DockArea at the time when we start dragging.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library