Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Sessions
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterSession
- UMLAdapterLocalDataCollectionSession
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sessions/MLAdapterLocalDataCollectionSession.h |
| Include | #include "Sessions/MLAdapterLocalDataCollectionSession.h" |
Syntax
UCLASS (Blueprintable, EditInlineNew)
class UMLAdapterLocalDataCollectionSession : public UMLAdapterSession
Remarks
Collects data from agents' sensors and writes them to a file for offline processing. Only works with a locally controlled, single-player game.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bPrefixOutputFilenameWithTimestamp | ||
| FString | FileName | ||
| FDirectoryPath | FilePath |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | OnPawnControllerChanged
(
APawn* InPawn, |
Overridden from UMLAdapterSession
| Type | Name | Description | |
|---|---|---|---|
| void | Close () |
Mark the session as inactive and cleanup all agents. | |
| void | OnPostWorldInit
(
UWorld& World |
||
| void | Tick
(
float DeltaTime |
Call all agents' Sense(), Think(), and Act() methods. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |