unreal.PythonFileExecutionScope

class unreal.PythonFileExecutionScope

Bases: unreal.EnumBase

Controls the scope used when executing Python files.

C++ Source:

  • Plugin: PythonScriptPlugin

  • Module: PythonScriptPlugin

  • File: PythonScriptTypes.h

PRIVATE

Execute the Python file with its own unique locals and globals dict to isolate any changes it makes to the environment (like imports).

Type

0

PUBLIC

Execute the Python file with the shared locals and globals dict as used by the console, so that executing it behaves as if you’d ran the file contents directly in the console.

Type

1