This section shows you how to integrate the 6Labs SDK into your iOS and Android apps on Unity.
The 6Labs SDK is included as a Unity package file SixLabsSDK-1.0.6.unitypackage.
Add the module to your Unity project:
SixLabsSDK-1.0.6.unitypackage from your system.Use the Init() method to initialize the SDK and start the gameplay capture process, as illustrated below:
SixLabsSDK.Instance.Init(
inGameId: "<optional_player_in_game_id>",
developerPayload: "<optional_developer_payload_here>"
);
The following is the method reference for the Init() method.
public void Init(string inGameId = null, string developerPayload = null)
| Parameter | Type | Required | Description |
|---|---|---|---|
inGameId |
string |
No | An optional user identifier within the game. If not passed, it defaults to an empty string. |
developerPayload |
string |
No | Optional developer-defined metadata associated with the session. This value is forwarded as-is with the capture request and can be used to attach custom tracking or contextual information. Example:
|
In most integrations, calling Init() is sufficient to begin the capture flow. For advanced or custom capture control, you may also use StartCapture() and StopCapture() directly.
Use the StartCapture() method when you want to explicitly control when gameplay capture begins.
SixLabsSDK.Instance.StartCapture(
inGameId: "<optional_player_in_game_id>",
developerPayload: "<optional_developer_payload_here>"
);
public void StartCapture(string inGameId = null, string developerPayload = null)
| Parameter | Type | Required | Description |
|---|---|---|---|
inGameId |
string |
No | An optional user identifier within the game. If not passed, it defaults to an empty string. |
developerPayload |
string |
No | Optional developer-defined metadata associated with the session. This value is forwarded as-is with the capture request and can be used to attach custom tracking or contextual information. |
Use the StopCapture() method to stop the active gameplay capture session.
SixLabsSDK.Instance.StopCapture();
StartCapture() again later to begin a new session.Table of Contents
Table of Contents
Document Rev. 1.0