The Cross-device Toolkit (XDTK) is an open-source toolkit developed to enable simple, straight-forward communication between Android devices and the Unity game engine. The toolkit is comprised of a ...
Add these codes to your Behaviour script, and they initialize the plugin. If the app want to read sensor values more frequently, call setSamplingPeriod plugin method. The argument is in micro seconds.