BrainBit for developers Subscribe for updates Visit website

Unity

 

Available for iOS, Android, Windows, MacOS platforms

1. Open Package Manager
2. Click "Add" menu and choose "Add package from GIT url...". A text box and an Add button appear.
3. Enter a "https://github.com/BrainbitLLC/unity_neurosdk2" in the text box and click Add.

 

If Unity was able to install the package successfully, the package now appears in the package list with the tag. If Unity was not able to install the package, the Unity Console displays an error message.

 

For Android platform ask for Bluetooth and Location permission before use:

    
#if UNITY_ANDROID
Permission.RequestUserPermission("android.permission.BLUETOOTH_SCAN");
Permission.RequestUserPermission("android.permission.BLUETOOTH_CONNECT");
Permission.RequestUserPermission("android.permission.BLUETOOTH");
Permission.RequestUserPermission("android.permission.BLUETOOTH_ADMIN");
Permission.RequestUserPermission("android.permission.ACCESS_FINE_LOCATION");
Permission.RequestUserPermission("android.permission.ACCESS_COARSE_LOCATION");
Permission.RequestUserPermission("android.permission.ACCESS_BACKGROUND_LOCATION");
#endif