FEditorModeRegistry

A registry of editor modes and factories

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EditorModeRegistry.h

Include

#include "EditorModeRegistry.h"

Syntax

class FEditorModeRegistry

Remarks

A registry of editor modes and factories

Functions

Name Description

Public function

TSharedPtr< ...

 

CreateMode

(
    FEditorModeID ModeID,
    FEditorModeTools& Owner
)

Create a new instance of the mode registered under the specified ID

Public function

UEdMode *...

 

CreateScriptableMode

(
    FEditorModeID ModeID,
    FEditorModeTools& Owner
)

Create a new instance of the mode registered under the specified ID

Public function

 

DECLARE_EVENT

(
    FEditorModeRegistry,
    FRegisteredModesChangedEvent
)

Event that is triggered whenever a mode is registered or unregistered

Public function

 

DECLARE_EVENT_OneParam

(
    FEditorModeRegistry,
    FOnModeUnregistered,
    FEditorModeID
)

Event that is triggered whenever a mode is unregistered

Public function

 

DECLARE_EVENT_OneParam

(
    FEditorModeRegistry,
    FOnModeRegistered,
    FEditorModeID
)

Event that is triggered whenever a mode is registered

Public function Static

FEditorModeR...

 

Get()

Singleton access

Public function Const

const Factor...

 

GetFactoryMap()

Const access to the internal factory map

Public function Const

FEditorModeI...

 

GetModeInfo

(
    FEditorModeID ModeID
)

Get a currently registered mode information for specified ID

Public function Const

TArray< FEdi...

 

GetSortedModeInfo()

Get a list of information for all currently registered modes, sorted by UI priority order

Public function Static

void

 

Initialize()

Initialize this registry

Public function

FOnModeRegis...

 

OnModeRegistered()

Public function

FOnModeUnreg...

 

OnModeUnregistered()

Public function

FRegisteredM...

 

OnRegisteredModesChanged()

Public function

void

 

RegisterMode

(
    FEditorModeID ModeID,
    TSharedRef< IEditorModeFactory > Fa...
)

Registers an editor mode. Typically called from a module's StartupModule() routine.

Public function

void

 

RegisterMode

(
    FEditorModeID ModeID,
    FText Name,
    FSlateIcon IconBrush,
    bool bVisible,
    int32 PriorityOrder
)

Registers an editor mode type. Typically called from a module's StartupModule() routine.

Public function

void

 

RegisterScriptableMode

(
    FEditorModeID ModeID,
    FText Name,
    FSlateIcon IconBrush,
    bool bVisible,
    int32 PriorityOrder
)

Registers an editor mode type. Typically called from a module's StartupModule() routine.

Public function Static

void

 

Shutdown()

Shutdown this registry

Public function

void

 

UnregisterMode

(
    FEditorModeID ModeID
)

Unregisters an editor mode.

Typedefs

Name

Description

FactoryMap

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss