Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- TSharedFromThis
- IEditorModeFactory
- FEditorModeFactory
- FPhysicsManipulationEdModeFactory
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorModeRegistry.h |
| Include | #include "EditorModeRegistry.h" |
Syntax
struct IEditorModeFactory : public TSharedFromThis< IEditorModeFactory >
Remarks
Class responsible for maintaining a list of registered editor mode types.
Example usage:
Register your mode type with: FEditorModeRegistry::Get().RegisterMode
Unregister your mode when it is no longer available like so (this will prompt the destruction of any existing modes of this type): FEditorModeRegistry::Get().UnregisterMode( FName( TEXT("MyEditorMode") ) );
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FEdMode > | CreateMode () |
Create a new instance of our mode | |
| FEditorModeInfo | GetModeInfo () |
Gets the information pertaining to the mode type that this factory creates | |
| void | OnSelectionChanged
(
FEditorModeTools& Tools, |
Allows mode factories to handle selection change events, and potentially activate/deactivate modes |