Running Schola
Schola uses subclasses of UnrealConnection
to interact with Unreal Engine. It supports both creating a standalone instance of Unreal Engine running as a child process of your python script, or connecting to a running Unreal Engine process.
Launch An Unreal Environment From Python
Schola supports running environments entirely from python using a StandaloneUnrealConnection
.
from schola.core.unreal_connection import StandaloneConnection
url="localhost" # Connect to the engine over localhost
ue_path="Path to your Game Binary"
port=None # Leave blank to use an arbitrary open port
headless_mode = True # Should we skip rendering the Unreal Engine game?
display_logs = False # Should we open a terminal to show Unreal Engine logs?
_map=None # Run the default map for the selected executable, set to "/game/<path to map>" to use a different map.
set_fps=60 # Set a fixed framerate for the game.
disable_script=True # Ignore the RunScriptOnLaunch setting for the UnrealEngineGame.
unreal_connection = StandaloneConnection(url=url,
port=port,
headless_mode=headless_mode,
display_logs=display_logs,
map=_map,
set_fps=set_fps)
Initialize the Environment
Connect To a Running Unreal Environment
Schola supports connecting to an already running Editor or Game, for debugging and Unreal Engine driven workflows using a UnrealEditorConnection