Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FEditorModeTools
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorModeManager.h |
| Include | #include "EditorModeManager.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorModeManager.cpp |
bool EnsureNotInMode
&40;
FEditorModeID ModeID,
const FText & ErrorMsg,
bool bNotifyUser
&41; const
Remarks
Returns true if the current mode is not the specified ModeID. Also optionally warns the user. true if the current mode is not the specified mode.
Parameters
| Name | Description |
|---|---|
| ModeID | The editor mode to query. |
| ErrorMsg | If specified, inform the user the reason why this is a problem |
| bNotifyUser | If true, display the error as a notification, instead of a dialog |