FEditorViewportClient::DropObjectsAtCoordinates

Attempts to intelligently drop the given objects in the viewport, using the given mouse coordinates local to this viewport

Windows
MacOS
Linux

Override Hierarchy

FEditorViewportClient::DropObjectsAtCoordinates()

FLevelEditorViewportClient::DropObjectsAtCoordinates()

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h

Include

#include "EditorViewportClient.h"

Syntax

virtual bool DropObjectsAtCoordinates
(
    int32 MouseX,
    int32 MouseY,
    const TArray< UObject * > & DroppedObjects,
    TArray< AActor * > & OutNewActors,
    bool bOnlyDropOnTarget,
    bool bCreateDropPreview,
    bool bSelectActors,
    UActorFactory * FactoryToUse
)

Remarks

Attempts to intelligently drop the given objects in the viewport, using the given mouse coordinates local to this viewport

Parameters

Parameter

Description

MouseX

The position of the mouse's X coordinate

MouseY

The position of the mouse's Y coordinate

DroppedObjects

The Objects to be placed into the editor via this viewport

OutNewActors

The new actor objects that were created

bOnlyDropOnTarget

Flag that when True, will only attempt a drop on the actor targeted by the Mouse position. Defaults to false.

bCreateDropPreview

If true, a drop preview actor will be spawned instead of a normal actor.

bSelectActors

If true, select the newly dropped actors (defaults: true)

FactoryToUse

The preferred actor factory to use (optional)

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