BrainBit for developers Subscribe for updates Visit website


Samples - GitLab

The latest version is `1.0.7`.

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 "" 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 (SystemInfo.operatingSystem.Contains("31") ||
                SystemInfo.operatingSystem.Contains("32") ||


For Android you need to add permissions to use geolocation and bluetooth to the manifest. You can read more about this on AndroidDeveloper.

Firstly, enable custom `AndroidManifest`:
1. Go to `PlayerSettings`
2. Open `Android` tab, then find `PublishingSettings`, then find `Build` part
3. Enable `Custom Main Manifest` option
4. Add permissions into it:

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" tools:targetApi="31" android:usesPermissionFlags="neverForLocation" />


For iOS/MacOs you need to add a key to `Info.plist` because it uses Bluetooth too:

public sealed class BuilderPostProcessor
    public static void OnPostProcessBuild(BuildTarget target, string path)
        if (target == BuildTarget.iOS)
            var infoPlist = new PlistDocument();
            var infoPlistPath = path + "/Info.plist";

            PlistElementDict dict = infoPlist.root.AsDict();
            dict.SetString("NSBluetoothAlwaysUsageDescription", "App requires access to Bluetooth to allow you connect to device");
            dict.SetString("NSBluetoothPeripheralUsageDescription", "App uses Bluetooth to connect with your Brainbit device");


After build you need to change Embed type to `neurosdk2.framework` from `Embed Without Signing` to `Embed & Sign` into `Unity-iPhone` module.