unreal.MLAdapterLocalDataCollectionSession

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

Bases: MLAdapterSession

Collects data from agents’ sensors and writes them to a file for offline processing. Only works with a locally controlled, single-player game.

C++ Source:

  • Plugin: MLAdapter

  • Module: MLAdapter

  • File: MLAdapterLocalDataCollectionSession.h

Editor Properties: (see get_editor_property/set_editor_property)

  • file_name (str): [Read-Write]

  • file_path (DirectoryPath): [Read-Write]

  • prefix_output_filename_with_timestamp (bool): [Read-Write]