Prerequisites

Unity dependency

  • TMP Essentials

Platform-specific requirements


Quick Start

Reference the sample scene and scripts located in Assets/Treasure/Example/ for full usage and integration examples

1

Download & install .unitypackage

Download the latest TDK from the github releases page and import it into your Unity project.

2

Run TDK Configuration

Obtain your JSON config key from the Treasure team (required for this step)

Once you have your config key ready, launch the config editor by navigating to Treasure -> TDK -> Config from the Unity Editor menu: Paste the provided config key and hit the Configure TDK button:

3

Add Treasure Connect Prefabs

At this point, we can go ahead and add the required Prefabs. Add the following prefabs to your scene: 1. Assets/Treasure/TDK/ConnectPrefabs/TDKConnectCanvasLandscape.prefab for landscape orientation or Assets/Treasure/TDK/ConnectPrefabs/TDKConnectCanvasPortrait.prefab for portrait.

For automatic portrait/landscape orientation detection, use Assets/Treasure/TDK/Runtime/Connect/UI/TDKConnectCanvasChooser.cs

4

Toggle Dev / Prod modes

Ensure Dev mode is enabled in the TDK Config Editor for testing purposes. Once you are ready to build for production, the TDK should be switched to Prod mode.

Dev/Prod mode can also be toggled via calling the TDKConfigWindow.SetDevEnvironment(true|false) editor script method. This can be useful for automating the process in your build pipeline.

Additional Build Instructions

Please review Thirdweb’s Build Instructions docs for additional information.

Code Stripping

A link.xml file is provided in the TDK package to prevent code stripping of required TDK classes. Ensure this file is included in your project. On Android, we recommend using the Android Resolver to manage external dependencies.

Current Features