Skip to content

Unity project setup

Merijn Hendriks edited this page Jan 10, 2018 · 5 revisions

1. Download and import unitypackage

2. Place ThinkGear.prefab in your initialization scene

3. Set the following player settings

iOS

  • set “Bundle Identifier” to your own
  • set “Scripting Backend” to “IL2CCP”
  • set “architecture” to “ARMv7”

Android

  • set “Bundle Identifier” to your own
  • set “Minimum API level” to “Android 4.1 (API level 16)”
  • set “Scripting Backend” to “Mono2x” (Unity 5.4.0+) or “Default” (Unity 5.3.8-)

Unity 2017.x

  • set “Scripting Runtime Version” to “Stable (.NET 3.5 Equivalent)”

4. Implement the code where you want to check for data

See event listeners for all available event listeners you can subscribe to, and the examples for more information on the inplementation

Warning

  • do NOT rename the class "ThinkGearController"
  • do NOT rename the class "UnityThinkgear"
  • do NOT rename the receive_data_(string value) methods
  • do NOT attach the ThinkGearController component to a GameObject unless it's named "ThinkGear" (without quotations)
  • do NOT have multiple components of ThinkGearController in your scene
  • if do any of this, you should listen to this song

Clone this wiki locally