Files
UnrealEngineUWP/Engine/Plugins/Editor/GeometryMode/Source/TextureAlignMode/Private/TextureAlignMode.cpp
lauren barnes 5bd8c74d4e FAssetEditorModeUILayer now serves as a layer between a given asset editor and the mode toolkits, so that the mode toolkits can request UI panels and the asset editor determines where they are located in the asset editor layout. The first implementation is in the level editor, and all default mode UI has been moved to FModeToolkit.
#jira UETOOL-3555
#preflight 61143dbf9c7bb10001f080b3
#rb Matt.Kuhlenschmidt

#ROBOMERGE-SOURCE: CL 17152278 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17152291 by lauren barnes in ue5-release-engine-test branch]
2021-08-12 10:54:54 -04:00

28 lines
640 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "TextureAlignMode.h"
#include "EditorModeManager.h"
#include "EditorModes.h"
#include "TextureAlignEdMode.h"
#include "GeometryModeModule.h"
#define LOCTEXT_NAMESPACE "TextureAlignMode"
FName FTextureAlignMode::GetToolkitFName() const
{
return FName("TextureAlignMode");
}
FText FTextureAlignMode::GetBaseToolkitName() const
{
return LOCTEXT("ToolkitName", "Texture Align Mode");
}
class FEdMode* FTextureAlignMode::GetEditorMode() const
{
return (FEdModeTexture*)GLevelEditorModeTools().GetActiveMode(FGeometryEditingModes::EM_TextureAlign);
}
#undef LOCTEXT_NAMESPACE