Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > FLevelEditorViewportClient
- 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 |
virtual bool DropObjectsAtCoordinates
&40;
int32 MouseX,
int32 MouseY,
const TArray< UObject &42; > & DroppedObjects,
TArray< AActor &42; > & OutNewActors,
bool bOnlyDropOnTarget,
bool bCreateDropPreview,
bool bSelectActors,
UActorFactory &42; FactoryToUse
&41;
Remarks
Attempts to intelligently drop the given objects in the viewport, using the given mouse coordinates local to this viewport
Parameters
Name | 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) |