Navigation
API > API/Editor > API/Editor/UnrealEd
A registry of editor modes and factories
| Name | FEditorModeRegistry |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorModeRegistry.h |
| Include Path | #include "EditorModeRegistry.h" |
Syntax
class FEditorModeRegistry
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FactoryMap | TMap< FEditorModeID, TSharedRef< IEditorModeFactory > > | EditorModeRegistry.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | EditorModeRegistry.h | ||
| ModeFactories | FactoryMap | A map of editor mode IDs to factory callbacks | EditorModeRegistry.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FactoryMap & GetFactoryMap() |
Const access to the internal factory map | EditorModeRegistry.h | |
FEditorModeInfo GetModeInfo
(
FEditorModeID ModeID |
Get a currently registered mode information for specified ID | EditorModeRegistry.h | |
TArray< FEditorModeInfo > GetSortedModeInfo() |
Get a list of information for all currently registered modes, sorted by UI priority order | EditorModeRegistry.h | |
FOnModeRegistered & OnModeRegistered() |
Event that is triggered whenever a mode is registered | EditorModeRegistry.h | |
FOnModeUnregistered & OnModeUnregistered() |
Event that is triggered whenever a mode is unregistered | EditorModeRegistry.h | |
FRegisteredModesChangedEvent & OnRegisteredModesChanged() |
Event that is triggered whenever a mode is registered or unregistered | EditorModeRegistry.h | |
void RegisterMode
(
FEditorModeID ModeID, |
Registers an editor mode. Typically called from a module's StartupModule() routine. | EditorModeRegistry.h | |
void RegisterMode
(
FEditorModeID ModeID, |
Registers an editor mode type. Typically called from a module's StartupModule() routine. | EditorModeRegistry.h | |
void UnregisterMode
(
FEditorModeID ModeID |
Unregisters an editor mode. | EditorModeRegistry.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FEditorModeRegistry & Get() |
Singleton access | EditorModeRegistry.h |