You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719 [CL 16738582 by aurel cordonnier in ue5-release-engine-test branch]
35 lines
1015 B
C++
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;
|
|
}; |