Skip to main content

Unity

Last updated 10/03/2026
tip

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 nameDescriptionVersion requirement
ta_unity_sdk.unitypackageCollects and processes data>= 3.2.0
ta_remoteconfig_sdk.unitypackageFetches configuration from the AE backend>= 1.0.0
ta_core_sdk.unitypackageProvides basic components>= 1.0.0
ta_strategy_sdk.unitypackageProvides client-side triggering>=1.0.0
  1. Click the download link at the top of this page to download the SDK, and then unzip it
  2. Double-click ta_unity_sdk.unitypackage, ta_remoteconfig_sdk.unitypackage, ta_strategy_sdk.unitypackage, and ta_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 nameTypeDescription
channelMsgTypeStringChannel message type
appIdStringThe app id of your AE project
pushIdStringChannel send ID of the operation task
taskIdStringID of the operation task
contentJSONObjectPush content of the operation task
userParamsJSONObjectCustom parameters in the client channel
opsPropertiesJSONObjectChannel information carried by the client-triggered task, used as receipt parameters for touch funnel events.
Was this page helpful?