Navigation
API > API/Plugins > API/Plugins/MLAdapter
Collects data from agents' sensors and writes them to a file for offline processing. Only works with a locally controlled, single-player game.
| Name | UMLAdapterLocalDataCollectionSession |
| Type | class |
| Header File | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sessions/MLAdapterLocalDataCollectionSession.h |
| Include Path | #include "Sessions/MLAdapterLocalDataCollectionSession.h" |
Syntax
UCLASS (Blueprintable, EditInlineNew)
class UMLAdapterLocalDataCollectionSession : public UMLAdapterSession
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMLAdapterSession → UMLAdapterLocalDataCollectionSession
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bPrefixOutputFilenameWithTimestamp | bool | Sessions/MLAdapterLocalDataCollectionSession.h |
|
|
| FileName | FString | Sessions/MLAdapterLocalDataCollectionSession.h |
|
|
| FilePath | FDirectoryPath | Sessions/MLAdapterLocalDataCollectionSession.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OutputFilePath | FString | Sessions/MLAdapterLocalDataCollectionSession.h | ||
| PlayerControlledAgent | TWeakObjectPtr< UMLAdapterAgent > | Sessions/MLAdapterLocalDataCollectionSession.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnPawnControllerChanged
(
APawn* InPawn, |
Sessions/MLAdapterLocalDataCollectionSession.h |
Overridden from UMLAdapterSession
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Close() |
Mark the session as inactive and cleanup all agents. | Sessions/MLAdapterLocalDataCollectionSession.h | |
virtual void OnPostWorldInit
(
UWorld& World |
Sessions/MLAdapterLocalDataCollectionSession.h | ||
virtual void Tick
(
float DeltaTime |
Call all agents' Sense(), Think(), and Act() methods. | Sessions/MLAdapterLocalDataCollectionSession.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostInitProperties() |
Sessions/MLAdapterLocalDataCollectionSession.h |