SwiftUI together with Unity fails to work in VR mode

I am able to run the example of “using swiftUI together with Unity” in mixed reality mode. But when I change the project to fully immersive/VR mode, I got this error : “############ OPEN WINDOW HelloWorld
No Scene with id ‘HelloWorld’ is defined
swift UI open: True
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointerButton(ButtonState&, PointerEventData)

It’s very weird, cause I do see the default SwiftUISampleInjectedScene.swift and HelloWorldContentView.swift in my project.

Please advice. Thanks.


Would also like to know if this is possible to do

1 Like

I would also love to be able to use this with VR apps.

Desired flow would be 2D Window in Mixed Reality → Fully Immersive (VR) → 2D Window in Mixed Reality. Any way to accomplish this?