Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorPythonScriptingLibrary
References
| Module | EditorScriptingUtilities |
| Header | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorPythonScriptingLibrary.h |
| Include | #include "EditorPythonScriptingLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorPythonScriptingLibrary.cpp |
UFUNCTION&40;BlueprintCallable, DisplayName&61;"Set Keep Python Script Alive",
Category&61;"Editor Scripting &124; Python"&41;
static void SetKeepPythonScriptAlive
&40;
const bool bNewKeepAlive
&41;
Remarks
Sets the bKeepPythonScriptAlive flag.
If this is false (default), it will close the editor during the next tick (when executing a Python script in the editor-environment using the UnrealEditor-Cmd commandline tool). If this is true, it will not close the editor by itself, and you will have to close it manually, either by setting this value to false again, or by calling a function like unreal.SystemLibrary.quit_editor(). The result of the users decision, true=Ok, false=Cancel, or false if running in unattended mode.
Parameters
| Name | Description |
|---|---|
| bNewKeepAlive | The new value of the bKeepPythonScriptAlive flag. |