unity-game-engine8thwall-xr

Unable to stream from Unity to XR Remote app on Android


I am not able to make XR Remote stream data from Unity to the app. I downloaded 8thWallXR-Demo project for Unity and did all the necessary stuff in tutorial, but it still doesn't work. I also followed troubleshooting instructions (restarting the ADB), but nothing worked.

When I start the app, I can see both USB and the name of my PC (Wi-Fi connection). If I select USB, it shows "Waiting for USB" infinitely, and if I choose Wi-Fi connection, the title changes to "-529". I guess they are connected somehow, but they cannot establish streaming connection.

The weird thing about this is it works properly on my second computer at work. So I really don't know what could cause the trouble.

I use Windows. Both XR tools and phone app are updated.


Solution

  • I solved the problem. It is most probably a Unity bug. I opened Edit -> Preferences -> External Tools. In "Android" section, there are five checkbox options.

    I unchecked the "Android NDK Installed with Unity (recommended)" checkbox. After that, I clicked Browse button, which automatically filled in path to NDK.

    This made XR Remote stream work properly. However the weirdest part about this is it actually works even if I check that checkbox again.