I created an unbounded volume experience for Vision Pro using Unity Polyspatial. I am able to launch the app, and everything works fine.
The issue is that I do not know how to close the experience with a Click on a button.
I have tried the Application.Quit(), but it does not work for this kind of experience.
I was wondering if there is a way to do it directly from C# code, so that once a user clicks on a button we provide within the experience, the experience can close and go back to the Vision Pro Home menu.
Why not? Do you mean that this doesn’t actually quit, or that it isn’t appropriate for your use case? Application.Quit is the proper way to quit the application from C# code.
Huh! I’m pretty sure we’ve tried Application.Quit() on our end, but maybe there’s been a regression introduced. Maybe it quits but doesn’t properly close the SwiftUI scene and that’s why the home screen doesn’t show up? Does the app just keep running?
Either way, this is almost definitely a bug. Can you please submit a bug report?