FEditorModeRegistry::Get

Singleton access

Windows
MacOS
Linux

References

Module

UnrealEd

Header

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

Include

#include "EditorModeRegistry.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorModeRegistry.cpp

Syntax

static FEditorModeRegistry & Get()

Remarks

Singleton access

Class responsible for maintaining a list of registered editor mode types.

Example usage:

Register your mode type with: FEditorModeRegistry::Get().RegisterMode( FName ) ); or: class FMyEditorModeFactory : public IEditorModeFactory { virtual void OnSelectionChanged( FEditorModeTools& Tools, UObject* ItemUndergoingChange ) const override; virtual FEditorModeInfo GetModeInfo() const override; virtual TSharedRef CreateMode() const override; }; TSharedRef Factory = MakeShareable( new FMyEditorModeFactory ); FEditorModeRegistry::Get().RegisterMode( FName ), Factory );

Unregister your mode when it is no longer available like so (this will prompt the destruction of any existing modes of this type): /**

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