# 官方文件 https://developer.vive.com/resources/openxr/openxr-mobile/tutorials/unity/wrist-tracking/ https://forum.htc.com/topic/14025-tutorial-openxr-how-to-use-hand-tracking-wrist-tracker/ # unity文件 https://docs.unity3d.com/Manual/xr_input.html # VIVE tracker 使用流程 {%youtube Tw5LbNLW9Q4%} # VIVE openXR unity範例 https://github.com/ViveDeveloperRelations/XR-Interaction-Toolkit-Examples/tree/openxr_origin2 # 官方討論版 官方sample https://forum.htc.com/topic/13793-unity-controller-detection/ # BLE for Android - [ ] https://github.com/Agora-VR/ble-unity-plugin-demo/tree/master - [ ] https://steemit.com/kr-dev/@etainclub/unity-vr-android-ble-9-unity-ble (韓文) - [ ] https://github.com/Velorexe/Unity-Android-Bluetooth-Low-Energy - [ ] https://github.com/morikatron/toio-sdk-for-unity/tree/main - [x] https://github.com/tpitman/Bluetooth-Asset-for-Unity-Examples/tree/master (軟體部使用) # adb偵錯 [Android官方文件](https://developer.android.com/studio/command-line/adb?hl=zh-tw) [VIVE forum](https://forum.htc.com/topic/2310-how-to-sideload-focus-content-and-android-debug-bridge-quick-tips/) ## 指令 * 查找裝置 ``` adb devices ``` * 安裝apk ``` #安裝 adb install [directory location of apk] #覆蓋 adb install -r [directory location of apk] ``` * 解除安裝 ``` adb uninstall com.CompanyName.AppName ``` * logcat監控 [(說明)](https://developer.android.com/studio/command-line/logcat?hl=zh-tw) ``` adb logcat #存檔 adb logcat > filename.txt #unity debug adb logcat -s Unity ActvityManager PackageManager dalvikvm DEBUG ``` * 藍芽 ``` adb root #啟動 adb shell service call bluetooth_manager 6 #關閉 adb shell service call bluetooth_manager 8 ``` * 關機 ``` adb shell reboot -p ``` * wifi adb ``` #find ip adb shell "ifconfig wlan0 | grep 'inet addr:'" #restart over wifi adb tcpip 5555 #connect adb connect <ip address>:5555 #revert to usb adb usb ``` * 檢查FPS ``` adb logcat|find"FPS" ``` * 查ip ``` adb shell ip -o a ``` ## 討論版 藍芽權限 https://stackoverflow.com/questions/69462964/unity-android-ble-bluetooth-permissions https://www.bellingo.de/blog/bluetooth-permissions-on-android-12-with-unity/