Unity-Android-蓝牙-插件
[进行中] Unity Android的蓝牙管理插件
目前,此插件只能与蓝牙设备配对。
将插件添加到Unity项目
.unitypackage文件放置在。
将包导入到您的Unity项目中。
使用Unity C#中的插件
使用BluetoothManager实用程序方法
开始扫描设备:
BluetoothManager . StartScanBluetooth ();
获取找到的设备的地址
List < string> addresses = BluetoothManager . GetDeviceAddresses ();
与设备配对(可能会出现Android本机UI)
// Use bluetooth address obtained by GetDeviceAddresses()
BluetoothManager . BondWith
评论0
最新资源