Skip to content

UnrealExecutableSimulatorArgs

Full path: schola.scripts.common.UnrealExecutableSimulatorArgs

schola.scripts.common.UnrealExecutableSimulatorArgs

UnrealExecutableSimulatorArgs

UnrealExecutableSimulatorArgs(
executable_path,
disable_script=True,
headless=False,
map=None,
fps=None,
display_logs=True,
)

Bases: object

Arguments for the Unreal Engine executable simulator in Schola.

This dataclass is used when you want to create a standalone Unreal Engine environment controlled by the Schola Python API.

Methods

ItemDescription
init
makeCreate an UnrealExecutable simulator instance with the specified settings.

Attributes

ItemDescription
disable_scriptFlag indicating if the autolaunch script setting in the Unreal Engine Schola Plugin should be disabled.
display_logsWhether to render logs in a standalone window.
fpsFixed FPS to use when running standalone, if None no fixed timestep is used
headlessFlag indicating if the standalone Unreal Engine process should run in headless mode
mapMap to load when launching a standalone Unreal Engine process
executable_pathPath to the standalone executable, when launching a standalone Environment must exist and be a file

Parameters

executable_path (Annotated[Path, Parameter(validator=(Path(exists=True, file_okay=True, dir_okay=False, ext=()),))])

disable_script (bool)

headless (bool)

map (str | None)

fps (int | None)

display_logs (bool)

init

__init__(
executable_path,
disable_script=True,
headless=False,
map=None,
fps=None,
display_logs=True,
)

Parameters

executable_path (Annotated[Path, Parameter(validator=(Path(exists=True, file_okay=True, dir_okay=False, ext=()),))])

disable_script (bool)

headless (bool)

map (str | None)

fps (int | None)

display_logs (bool)

Returns

None


disable_script

= True disable_script: bool

Flag indicating if the autolaunch script setting in the Unreal Engine Schola Plugin should be disabled. Useful for testing.


display_logs

= True display_logs: bool

Whether to render logs in a standalone window.


executable_path

executable_path: Annotated[
Path, Parameter(validator=Path(exists=True, file_okay=True, dir_okay=False, ext=()))
]

Path to the standalone executable, when launching a standalone Environment must exist and be a file


fps

= None fps: int | None

Fixed FPS to use when running standalone, if None no fixed timestep is used


headless

= False headless: bool

Flag indicating if the standalone Unreal Engine process should run in headless mode


make

make()

Create an UnrealExecutable simulator instance with the specified settings.

Returns

A configured UnrealExecutable simulator instance.

Return type: UnrealExecutable


map

= None map: str | None

Map to load when launching a standalone Unreal Engine process