Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > FLevelEditorViewportClient
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h |
Include | #include "LevelEditorViewport.h" |
Source | /Engine/Source/Editor/UnrealEd/Private/LevelEditorViewport.cpp |
bool DropObjectsOnActor
&40;
struct FViewportCursorLocation & Cursor,
const TArray< UObject &42; > & DroppedObjects,
AActor &42; DroppedUponActor,
int32 DroppedUponSlot,
EObjectFlags ObjectFlags,
TArray< AActor &42; > & OutNewActors,
bool bCreateDropPreview,
bool bSelectActors,
class UActorFactory &42; FactoryToUse
&41;
Remarks
Called when an asset is dropped upon an existing actor. true if the drop operation was successfully handled; false otherwise
Parameters
Name | Description |
---|---|
Cursor | Mouse cursor location |
DroppedObjects | Array of objects dropped into the viewport |
DroppedUponActor | The actor that we are dropping upon |
DroppedUponSlot | The material slot/submesh that was identified as the drop location. If unknown use -1. |
ObjectFlags | The object flags to place on the actors that this function spawns. |
OutNewActors | The list of actors created while dropping |
bCreateDropPreview | If true, the actor being dropped is a preview actor (defaults: false) |
bSelectActors | If true, select the newly dropped actors (defaults: true) |
FactoryToUse | The preferred actor factory to use (optional) |