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();
// 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 user identifier within the game. If not passed, it defaults to an empty string. |
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
StartSession() and
StopSession() directly.
Use the StartSession() method when you
want to
explicitly control when gameplay observation begins.
#include "SixLabsSubsystem.h"
USixLabsSubsystem* SixLabs = GetSubsystem();
// Start observing gameplay
SixLabs->StartSession(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 user identifier within the game. If not passed, it defaults to an empty string. |
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 StopSession() method to stop observing gameplay.
// Stop gameplay observation
SixLabs->StopSession();StartSession()
again later to start gameplay observation.
Document Rev. 1.0