Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Private/Tools/AssetEditorContextObject.h
daren cheng 99592a0721 Widget Tool Palette Prototype.
Add Marquee & create widget tools.
Add framework for widget-based tools.

#preflight 62202c37123d7a7f69141278
#jira UETOOL-4564 UETOOL-4565
#rb Vincent.Gauthier

[CL 19248542 by daren cheng in ue5-main branch]
2022-03-03 14:01:42 -05:00

37 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Tools/AssetEditorContextInterface.h"
#include "UObject/Object.h"
#include "AssetEditorContextObject.generated.h"
UCLASS(Transient)
class UAssetEditorContextObject : public UObject, public IAssetEditorContextInterface
{
GENERATED_BODY()
public:
// Begin UAssetEditorContextObject interface
const UTypedElementSelectionSet* GetSelectionSet() const override;
UTypedElementSelectionSet* GetMutableSelectionSet() override;
UTypedElementCommonActions* GetCommonActions() override;
UWorld* GetEditingWorld() const override;
const IToolkitHost* GetToolkitHost() const override;
IToolkitHost* GetMutableToolkitHost() override;
// End UAssetEditorContextObject interface
/**
* Set the toolkit host associated with our asset editor.
*/
void SetToolkitHost(IToolkitHost* InToolkitHost);
// Begin UObject interface
UWorld* GetWorld() const override;
// End UObject interface
private:
/** The toolkit host associated with our asset editor. */
IToolkitHost* ToolkitHost = nullptr;
};