unreal.PythonCommandExecutionMode

class unreal.PythonCommandExecutionMode

Bases: unreal.EnumBase

Controls the execution mode used for the Python command.

C++ Source:

  • Plugin: PythonScriptPlugin

  • Module: PythonScriptPlugin

  • File: PythonScriptTypes.h

EVALUATE_STATEMENT

Evaluate the Python command as a single statement. This will evaluate a single statement and return the result. This mode cannot run files.

Type

2

EXECUTE_FILE

Execute the Python command as a file. This allows you to execute either a literal Python script containing multiple statements, or a file with optional arguments.

Type

0

EXECUTE_STATEMENT

Execute the Python command as a single statement. This will execute a single statement and print the result. This mode cannot run files.

Type

1