Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorInteractiveToolsContext
Description
Configure whether tools should shutdown when the level gets changed. By default, the context will shut down any active tools on level change. Setting this to false will prevent this, but the system makes no promises about whether tools work properly across a level switch. Therefore, do not use this if you do not know for certain that it is safe to persist tools across a level change in your situation.
| Name | SetDeactivateToolsOnLevelChange |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Tools/EdModeInteractiveToolsContext.h |
| Include Path | #include "Tools/EdModeInteractiveToolsContext.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Tools/EdModeInteractiveToolsContext.cpp |
void SetDeactivateToolsOnLevelChange
(
bool bDeactivateTools
)