Files
UnrealEngineUWP/Engine/Source/Editor/LevelAssetEditor/Private/ULevelAssetEditor.cpp
brooke hubert d48c7d8e7f Remove tools context interface implementations from example asset editor code.
Maintaining these as we update the tools context APIs is unnecessary.  It should be sufficient to use the default editor implementation.

#Jira UE-110554
#rb jamie.dale

[CL 15691384 by brooke hubert in ue5-main branch]
2021-03-13 16:09:12 -04:00

18 lines
453 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ULevelAssetEditor.h"
#include "EditorModeManager.h"
#include "LevelAssetEditorToolkit.h"
#include "Engine/Level.h"
void ULevelAssetEditor::GetObjectsToEdit(TArray<UObject*>& InObjectsToEdit)
{
InObjectsToEdit.Add(NewObject<ULevel>(this, NAME_None, RF_Transient));
}
TSharedPtr<FBaseAssetToolkit> ULevelAssetEditor::CreateToolkit()
{
return MakeShared<FLevelEditorAssetToolkit>(this);
}