Skip to content

Getting Started

Installation

Download the latest release here and import it into your Unity project.

Dependencies

Android

  • Minimum API level: 24

iOS

Cocoapods for dependency resolving:

  • gem install cocoapods
  • brew install cocoapods (Homebrew)

Quick Start

Set Scripting Defines

Open your Player Settings and add the following Scripting Defines:

  • TDK_HELIKA
  • TDK_THIRDWEB
  • TDK_ANALYTICS (coming soon!)

scripting_defines

Run TDK Configuration

Request a project config key from Treasure; once you've obtained this, launch the config editor by navigating to Treasure -> TDK -> Config:

config_menu

Paste the provided config key and hit the Configure TDK button:

configure

Add Prefabs

At this point, we can go ahead and add the required Prefabs. Add the following prefabs to your scene:

  1. Assets/Thirdweb/Core/Prefabs/ThirdwebManager.prefab
  2. Assets/Treasure/TDK/ConnectPrefabs/TDKConnectCanvasLandscape.prefab for landscape orientation or Assets/Treasure/TDK/ConnectPrefabs/TDKConnectCanvasPortrait.prefab for portrait.