Here is a solution for it:
As for having Holographic Remoting functionality in Unity UWP build, you should turn on 'WSA Holographic Remoting' in Player XR Setting and load two SDKs, the first one should be set to 'None' and the second one set to 'Windows Mixed Reality'. If you do not do that, your UWP app will be opened in Mixed Reality Portal instead of a normal App.
Be you you load your WindowsMR
SDK anywhere in your script in Start()
method like this:
private void Start()
{
StartCoroutine(LoadingWindowsMrWrapper());
}
private IEnumerator LoadingWindowsMrWrapper()
{
yield return new WaitForSeconds(1);
StartCoroutine(LoadDevice("WindowsMR"));
}
private static IEnumerator LoadDevice(string newDevice)
{
XRSettings.LoadDeviceByName(newDevice);
yield return null;
XRSettings.enabled = true;
}
If you have a UI Connect button, you can then call your HolographicRemoting.Connect(ipAddress);
. By now you should be connected.
Also before application quit be sure you are disconnected.
Let me know if it did not workout for you.