Using 6Labs SDK

This section shows you how to integrate the 6Labs SDK into your iOS and Android apps on Unity.

1. Download and Import the Module

The 6Labs SDK is included as a Unity package file SixLabsSDK-1.0.0.unitypackage. Add the module to your Unity project:

  1. Download the package containing the latest version of 6Labs SDK for Unity.
  2. Now, import the package into your Unity project. To do this:
    • Click on Assets > Import Package > Custom Package.
    • Select SixLabsSDK-1.0.0.unitypackage from your system.
    • Click on Import.

2. Start Gameplay Capture

Use the StartCapture() method to start capturing gameplay, as illustrated below:

 SixLabsSDK.Instance.StartCapture(
     inGameId: "<optional_player_in_game_id>",
     developerPayload: "<optional_developer_payload_here>"
 );

Important Information

  • Ensure that you obtain user consent before initiating gameplay capture. The SDK does not automatically request permission; consent handling must be implemented in your game logic.
  • As a suggested best practice, you may include a disclosure of gameplay recording in your game’s EULA or privacy policy.

Reference

The following is the method reference for the StartCapture() method.

Method Signature

 public void StartCapture(string inGameId = null, string developerPayload = null)

Parameters

Parameter Type Required Description
inGameId string No An optional user identifier within the game. If not passed, 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:

  • Acquisition channel
  • Campaign ID
  • User segment (new, returning, whale)
  • Internal reference identifiers.

3. Stop Gameplay Capture

Use the StopCapture() method to stop capturing gameplay, as illustrated below:

 SixLabsSDK.Instance.StopCapture();

Important Information

  • Stops the active gameplay capture session.
  • You can call StartCapture() again to begin a new session.
×

Table of Contents

Using 6Labs SDK

Table of Contents

Document Rev. 1.0

Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg