Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Public/LevelEditorDragDropHandler.h
aurel cordonnier 02c0f425e8 Copy up from Release-Engine-Staging @ 16738359
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719

[CL 16738582 by aurel cordonnier in ue5-release-engine-test branch]
2021-06-22 00:27:54 -04:00

35 lines
1015 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Internationalization/Text.h"
#include "LevelEditorDragDropHandler.generated.h"
class FViewport;
struct FAssetData;
UCLASS(transient)
class UNREALED_API ULevelEditorDragDropHandler : public UObject
{
public:
GENERATED_BODY()
public:
ULevelEditorDragDropHandler();
virtual bool PreviewDropObjectsAtCoordinates(int32 MouseX, int32 MouseY, UWorld* World, FViewport* Viewport, const FAssetData& AssetData);
virtual bool PreDropObjectsAtCoordinates(int32 MouseX, int32 MouseY, UWorld* World, FViewport* Viewport, const TArray<UObject*>& DroppedObjects, TArray<AActor*>& OutNewActors);
bool GetCanDrop() const { return bCanDrop; }
FText GetPreviewDropHintText() const { return HintText; }
protected:
bool bRunAssetFilter = true;
/** True if it's valid to drop the object at the location queried */
bool bCanDrop = false;
/** Optional hint text that may be returned to the user. */
FText HintText;
};