Unity
Unity SDK: Supports the iOS and Android platforms
Requires Unity 5.4.0 or later
Latest version: v1.3.1
Update time: 2025-12-03
Downloads: Download
Beta version: None
1. Overview
Starting from AE 4.4, the Engage module provides the client-triggered task feature, which supports millisecond-level triggering in in-app scenarios such as new user registration and character creation, as well as real-time A/B splitting. On the client side, the ThinkingData SDK communicates with the AE backend to fetch and evaluate tasks.
Integrate the ThinkingData SDK into your app. On the app side, you only need to handle interactions with the ThinkingData SDK and don't need to care about task details in the AE backend.
2. Integration
2.1 Integrate the SDK manually
Client-triggered tasks depend on the following ThinkingData SDKs:
| SDK name | Description | Version requirement |
|---|---|---|
| ta_unity_sdk.unitypackage | Collects and processes data | >= 3.2.0 |
| ta_remoteconfig_sdk.unitypackage | Fetches configuration from the AE backend | >= 1.0.0 |
| ta_core_sdk.unitypackage | Provides basic components | >= 1.0.0 |
| ta_strategy_sdk.unitypackage | Provides client-side triggering | >=1.0.0 |
- Click the download link at the top of this page to download the SDK, and then unzip it
- Double-click
ta_unity_sdk.unitypackage,ta_remoteconfig_sdk.unitypackage,ta_strategy_sdk.unitypackage, andta_core_sdk.unitypackage
3. Initialization
Initialize the SDK. For details on how to configure TDSettings, see Advanced guide.
using ThinkingData.Core;
// For details on how to configure TDSettings, see [Advanced guide]
TDSettings settings = new TDSettings("AppId","ServerUrl");
TDApp.Init(settings);
4. Set a callback listener
After the SDK is initialized, set a callback listener for the TDStrategy SDK.
using ThinkingData.Strategy;
public class ConcreteStrategyResultListener : TDStrategyResultListener {
public void OnTriggerResult(TDStrategyResult result) {
}
}
TDStrategy.SetTriggerListener(new ConcreteStrategyResultListener());
4.1 Callback data model
public class TDStrategyResult {
public string appId;
public string taskId;
public string channelMsgType;
public string pushId;
public Dictionary<string, object> content;
public Dictionary<string, object> userParams;
public Dictionary<string, object> opsProperties;
}
Property description
| Property name | Type | Description |
|---|---|---|
| channelMsgType | String | Channel message type |
| appId | String | The app id of your AE project |
| pushId | String | Channel send ID of the operation task |
| taskId | String | ID of the operation task |
| content | JSONObject | Push content of the operation task |
| userParams | JSONObject | Custom parameters in the client channel |
| opsProperties | JSONObject | Channel information carried by the client-triggered task, used as receipt parameters for touch funnel events. |

