This section explains how to integrate the 6Labs SDK into your Unreal Engine apps on Windows.
The 6Labs SDK is provided as an Unreal Engine plugin.
Add the module to your Unreal project:
YourProject/Plugins/SixLabsSDK/).Build.cs, add:
PublicDependencyModuleNames.Add("SixLabsSDK");
Use the Init() method to initialize the
SDK and
start observing gameplay, as
illustrated
below:
#include "SixLabsSubsystem.h"
USixLabsSubsystem* SixLabs = GetSubsystem<USixLabsSubsystem>();
// Start observing gameplay
SixLabs->Init(TEXT("optional_player_in_game_id"), TEXT("optional_developer_payload_here"));// ... gameplay happens — session data is uploaded automatically ...
InGameId is not passed, the observed session may be discarded and will not be used for AI analysis. Without it, sessions cannot be attributed to a player, which is required for downstream insights.The following is the method reference for the
Init() method.
| Parameter | Type | Required | Description |
|---|---|---|---|
InGameId |
FString |
No | An optional but recommended user identifier. If omitted, the session may be discarded and will not be used for AI analysis. |
DeveloperPayload
|
FString |
No | Optional developer-defined metadata associated with the session. This value is forwarded as-is with the session request and can be used to attach custom tracking or contextual information. Providing richer DeveloperPayload can significantly improve AI-powered analysis and session understanding.
Example:
|
In most integrations, calling Init() is
sufficient to begin observing gameplay. For
advanced or
custom control, you may also use
StartCapture() and
StopCapture() directly.
Use the StartCapture() method when you
want to
explicitly control when gameplay observation begins.
#include "SixLabsSubsystem.h"
USixLabsSubsystem* SixLabs = GetSubsystem<USixLabsSubsystem>();
// Start observing gameplay
SixLabs->StartCapture(TEXT("optional_player_in_game_id"), TEXT("optional_developer_payload_here"));// ... gameplay happens — session data is uploaded automatically ...
| Parameter | Type | Required | Description |
|---|---|---|---|
InGameId |
FString |
No | An optional but recommended user identifier. If omitted, the session may be discarded and will not be used for AI analysis. |
DeveloperPayload
|
FString |
No | Optional developer-defined metadata associated with the session. This value is forwarded as-is with the session request and can be used to attach custom tracking or contextual information. Providing richer DeveloperPayload can significantly improve AI-powered analysis and session understanding. |
Use the StopCapture() method to stop observing gameplay.
// Stop gameplay observation
SixLabs->StopCapture();StartCapture()
again later to start gameplay observation.