Menu

TopOn Unity3D Plugin (2.0.0+) import instructions

Plugin introduction

Plugin 2.1.0

New features

  1. Support Android and iOS separate integration;
  2. Support simultaneous download of domestic and overseas regions (note: if the package of two regions is integrated at the same time, whether it is Android or iOS, there will be a class library conflict problem resulting in compilation failure, need to deal with the package that does not want to be compiled during the compilation run or delete the SDK of a region);
  3. Support multiple SDK version selection;
  4. Modified the data storage mode of Network installation.

Note:

  1. If there is an integrated Android Jingdong SDK, you need to set Android X to Enable, because the Jingdong SDK depends on the Android X environment.
  2. If the packages of two regions are integrated at the same time, no matter Android or iOS, there will be class library conflict, resulting in compilation failure. Special treatment for packages that do not want to be compiled should be required during compilation or the SDK of a region should be deleted.
  3. To upgrade from 2.0.0-2.0.3 to 2.1.0, delete the Assets/AnyThinkAds and Assets/AnyThinkPlugins folders.

Plugin 2.0.0~2.0.3

UnitPluginChinaImgUnitPluginOverseasImg

  • Region (region): The plug-in provides two region options: China (ChinaMainland) and overseas Region (Overseas) is only used for Android to download the network in the corresponding region. iOS supports global release. Use Any region will do.
  • AndroidX: Yes A collection of support libraries for developing Android applications, only available on the Android platform. When selecting the China region, an option is provided to determine whether to use AndroidX. It is worth noting that in overseas regions, AndroidX needs to be used by default.
  • Upgrade : If A version number (Unity 3D plug-in, Android, iOS) that is behind the latest version will appear clickable. After clicking, if Android or iOS needs to be updated, the core package will be automatically downloaded and updated. If the Unity 3D plug-in version needs to be updated, jump to the plug-in download page, where you need to manually download the latest plug-in and re-import the plug-in.
  • Upgrade All: If There are networks that need to be updated in the currently installed network list and are displayed in a clickable state. After clicking, all networks that need to be updated will be updated at once.
  • Install: Click to install network.
  • Delete button: Delete installed network.

Note:

  1. If you switch regions, the list of installed networks on Android and iOS will be cleared. Please confirm the desired region before switching to avoid the need to reinstall the network.
  2. Starting from plug-in version 2.0.1, domestic pangolins use Csj name, overseas pangolins use the Panglename.

Plugin import

Follow the following steps to import the plug-in:

  1. Open Unity and select Assets > Import Package > Custom Package .
  2. Select the Unity plug-in file you downloaded.
  3. InImport Unity Package dialog box, click Import.
  4. After the plug-in is imported, view the options on the Unity menu bar and click AnyThink opens the plug-in.

Note: If you have imported old plug-ins, you need to delete the old plug-ins first , just delete the AnyThinkPlugin directory under the Assets directory.

Integrated environment

  • Unity 2019.x.x or higher.
  • Android build: You need to check "Custom Main Gradle Template" and "Custom Gradle Properties Template" as shown below.

  • iOS build: If you enable Bitcode, your build will fail. Apple deprecated Bitcode in Xcode 14. The AnyThink plugin requires CocoaPods. If CocoaPods is not installed, you can install CocoaPods by following the instructions in the CocoaPods Getting Started Guide .

Notes

Android cache handling

Build Android Previously, to avoid being affected by caching and causing certain networks not to be integrated, it is recommended to follow the steps below and click Force Resolve:

Menu bar Assets > External Dependency Manager > Android Resolver > Force Resolve.

UnityAds Platform

If you need to access the UnityAds advertising platform, please confirm whether the unity advertising plugin is introduced in the Package Manager (Window>Package Manager) in the unity project. If so, please remove it before integrating it, otherwise it may cause integration conflicts, google store Problems such as failure to pass the review.

Previous
SDK import instructions
Next
Unity SDK initialization
Last modified: 2025-05-30Powered by