unreal.LearningAgentsReplaySubsystem

class unreal.LearningAgentsReplaySubsystem(outer: Object | None = None, name: Name | str = 'None')

Bases: GameInstanceSubsystem

Subsystem to handle recording/loading replays. Exposes functionality to Blueprints

C++ Source:

  • Plugin: LearningAgents

  • Module: LearningAgentsReplay

  • File: LearningAgentsReplaySubsystem.h

classmethod does_platform_support_replays() bool

Returns true if this platform supports replays at all

Return type:

bool

get_replay_current_time() float

Gets current playback time

Return type:

float

get_replay_length_in_seconds() float

Gets length of current replay

Return type:

float

play_replay(replay) None

Loads the appropriate map and plays a replay

Parameters:

replay (LearningAgentsReplayListEntry)

record_client_replay(player_controller) None

Starts recording a client replay, and handles any file cleanup needed

Parameters:

player_controller (PlayerController)

seek_in_active_replay(time_in_seconds) None

Move forward or back in currently playing replay

Parameters:

time_in_seconds (float)

stop_recording_replay() None

Stops the current active recording