I have some objects that follow the player's position. Problem occurs when the player goes outside of the play area and then upon reentry, the objects dissappear. What I would like to happen is to reset the position of said objects to their original position when the player moves outside of the play area/ tracking becomes lost.
I've tried subscribing to the OVRManager.TrackingLost and OVRManager.TrackingAcquired events on each of the objects. These seem to work when I use the headset with Oculus link. However it doesn't work when I make a quest build as the objects disappear when moving outside of the guardian boundary. I'm unsure if they're being destroyed or moving to a position that's out of view, I don't have a console on the quest build.
I've been reading the OVRBoundary page (sorry can't post links yet) which suggests that it should be possible to get what I need by using the OVRBoundary. However, there is no code examples on how this could be achieved and clicking on the Developer Reference link takes be back to the same site.
Would appreciate on some guidance from anyone who have solved this issue before. Basically I just need to know when the player moves outside of the play space (to the point where to headset asks the player to move back in or set up a new play area) and when the player reenters to play area. I figure I should be able to reset the objects when I know how to do that.