FLevelEditorViewportClient::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/LevelEditorViewport.h

Include

#include "LevelEditorViewport.h"

Source

/Engine/Source/Editor/UnrealEd/Private/LevelEditorViewport.cpp

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)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback