SwiftUI together with Unity fails to work in VR mode

Hi,
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.Events.UnityEvent:Invoke()
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointerButton(ButtonState&, PointerEventData)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointer(PointerModel&)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:Process()”

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

Please advice. Thanks.

2 Likes

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?