Locked through Plane classifications

In the visionOS app project, you can lock to wall / floor / ceiling / table / seat / window / door through Plane classifications. How can I lock a View to one of them and change a Bool variable to true after successful locking?

Replies

I believe the “update” method of your RealityView will fire when your entity appears in the scene.

You could check the .scene property of your entity at that time and observe it is non-nil.

  • May I ask if there is an official listing code or document?

Add a Comment