Skip to content

Connect to bluetooth without pairing in Unity (Android)

Notifications You must be signed in to change notification settings

JCxYIS/UnityAndroidBluetooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity Bluetooth (Android)

Connect with bluetooth in Unity (Android).

Features

  • Scan/Connect to remote device
    • No need to pair the device beforehand
    • Support PIN code input
  • Send/Write Message

Demo

Project Stucture

  • UnityBluetoohArduino Contains the simple arduino project, for testing send/write functions.
  • UnityBluetooth-AndroidStudio The Android Studio project, to write the android-specified code, and export the .jar plugin to integrate with unity. (the jar is under ./app/release)
  • UnityBluetooth-Unity The Unity project, the aar library is already in here. (You only need this to build your unity app.)
    • You may be interested in BluetoothManager

Notes

After you install the app, you may need to manually enable the permissions under android application settings.