Issue: Closing Bounded Volume Never Re-Opens

Greetings. I am having this issue with a Unity Polyspatial VisionOS app. We have our main Bounded Volume for our app.

We have other Native UI windows that appear when we interact with objects in our Bounded Volume. If a user closes our main Bounded Volume...sometimes it quits the app. Sometimes it doesn't.

If we go back to the home screen and reopen the app, our main Bounded Volume doesn't always appear, and just the Native UI windows we left open are visible. But, we can sometimes still hear sounds that are playing in our Bounded Volume.

What solutions are there to make sure our Bounded Volume always appears when the app is open?

I'm not working with Unity, but it sounds like a similar issue we have with native windows and volumes. visionOS will open the last opened "scene" †

You may want to check with Unity support to see if they have bridged the APIs needed to manage scene state.

If you have access to the Swift file that creates each window and volume, or the views at their root level, then you may be able to work with APIs like ScenePhase to monitor the status of scene scene type. I do this in one of my apps. The main content is in a volume, with a small utility window for editing. If the volumes gets closed, the utility window can notice the change and offer a means to reopen the volume.

† scene in this case means Windows, Volumes, and Spaces, not 3D scene graphs

Issue: Closing Bounded Volume Never Re-Opens
 
 
Q