使用ARKitRemoteConnection
步驟
- 使用Unity 2017.1之后的版本蕾殴,安裝ARKit插件笑撞;
- 編譯并在iPhone或iPad上運行 UnityARKitRemote 項目;
- 在iPhone或iPad上打開ARKitRemote項目钓觉;
- 在Unity上運行帶有ARKitRemoteConnection的ARKit項目茴肥;
- 在Unity的Console窗口選擇ConnectedPlayer里的iOS設(shè)備;
- 點擊Game窗口顯示的StartRemoteARKitSession按鈕荡灾。
相關(guān)圖片:
Pasted Graphic 1.png
Pasted Graphic 3.png
Pasted Graphic 5.png
可能遇到的問題:
使用ARKitRemote 報錯Failed to connect to player
解決方法:
File - Build Settings - 勾選 Development Build 和 Autoconnect Profiler
Pasted Graphic.png
視頻教程
https://www.youtube.com/watch?v=dfrBjj3KWSU
圖文教程
https://lilea.net/lab/en/how-to-use-unity-arkit-remote/