You can also see a more coded custom approach to this feature in Apple's Diorama sample code.
Post
Replies
Boosts
Views
Activity
See Billboard component in RealityComposer Pro. I set it's property to 1 and now the attachments rotate to face the user.
FB15674194
FB15507935
Apple fixed and updated the project as a result of my feedback. I tested and it now compiles and runs.
The above makes sense. We solved our memory leak by
not using a model
isolating our video feature to a RealityView who job it is to only show video (in our case in 180 degree sphere) taking in the appropriate URL.
So, the RealityView itself has all the AVFoundation objects and logic to play and display video. When we navigate to and away from the view, the RealityView is either recreated our destroyed, we actually observe the memory created and released.
We are no longer using a notification though, we take note of the weak reference for when we'll add additional features to video playback.
FB15437352
Confirming it is still occurring in Diorama example, and also in my own app under similar implementations: RealityKit, and Attachments.
If I comment the attachment code (ie: I don't add any attachment), the issue does not appear.
Created FB15291821.
FB number: FB15291106
Apple replied to my FB15058216 with a link to the pushWindow documentation that says : "Calling this action from a pushed window is not allowed.". So, we can't use pushWindow twice as to create deep view hierarchies.
Closing this issue as solved.
Hello,
As of visionOS 2.0 the prompt is not longer as pronounced. See this tread for more information.
Ok, we removed the alert, thanks for informing.
change Preferred Default Scene Session Role to Immersive Space Application Session Role in your info.plist
Thanks you, this also worked.
FYI, pushWindow did work to resolve the vertical displacement. But, we encountered a new error with it.. It seems like there is a limit to the amount of windows we can push. I was hopeful with this pushWindow we could create view hierarchies, but we appear to be limited to two levels...
So, now the new issue is: The application failed to create new scene, scene limit exceeded..
Sorry for the piling of issues, ie: regional issue, it's resolution, and now encountering new issue..
Thanks you for your help.
Hello,
Thank you for your response.
I want to confirm you are aware that visionOS presents people with a similar warning by default, before they enter a fully immersive space.
Does this warning only appear in the physical device? Creating a simple test project with the below configuration does not display this alert in the simulator. How can I be certain the alert will display on the physical device, when it does not in the simulator upon pressing Show Immersive Space of the template project?
it's not currently possible to open a window directly over another window without creating a NavigationStack behind the scenes.
That is not what we are trying to achieve. Our designers would like to have the alert as the very first view, and then go directly into the ImmersiveSpace. We do not want to display any other view or volume as an initial scene.
When we chose our configuration for the project template, in Initial Scene it appears we cannot set ImmersiveSpace as an initial scene. I looks like we have no other choice but to display a view prior to displaying an immersive space.
a) Is this correct?
b) Or, is it indeed possible for an ImmersiveSpace to be the initial scene of our app?
Thank you for the other information you provided.
Submitted: FB14895304
Submitted FB14895274
I cannot input the FB ID, neither as a comment of your reply which I get the message "This thread has been deleted", neither as a reply to my post whereby the page refreshes and the reply simply disappears as if nothing ever happened. Why can't I reply with the FB ID?