Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FEditorModeTools
Description
Activates an editor mode. Shuts down all other active modes which cannot run with the passed in mode.
| Name | ActivateMode |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorModeManager.h |
| Include Path | #include "EditorModeManager.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorModeManager.cpp |
void ActivateMode
(
FEditorModeID InID,
bool bToggle
)
Parameters
| Name | Remarks |
|---|---|
| InID | The ID of the editor mode to activate. |
| bToggle | true if the passed in editor mode should be toggled off if it is already active. |