Skip to content

[Work in progress] Bluetooth administration plugin for Unity Android

License

Notifications You must be signed in to change notification settings

kshoji/Unity-Android-Bluetooth-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Android-Bluetooth-Plugin

[Work in progress] Bluetooth administration plugin for Unity Android

Currently, this plugin can just paring with Bluetooth devices.

Add plugin to Unity project

.unitypackage file placed on Releases.

Import the package to your Unity project.

Use plugin from Unity C#

Use the BluetoothManager utility methods

Starts to scan devices:

BluetoothManager.StartScanBluetooth();

Obtains found devices' addresses

List<string> addresses = BluetoothManager.GetDeviceAddresses();

Pair with a device (Android native UI may be appeared)

// Use bluetooth address obtained by GetDeviceAddresses()
BluetoothManager.BondWithDeviceAddress(addresses[0]);

About

[Work in progress] Bluetooth administration plugin for Unity Android

Resources

License

Stars

Watchers

Forks

Packages

No packages published