cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate to using OVRBoundary.GetVisible()

adarsh-supernatural
Honored Guest

 

I noticed that the OVRBoundary.GetVisible() is being deprecated and this page suggests not using it anymore

https://developer.oculus.com/documentation/unity/unity-ovrboundary/

Is there an alternate function that I can use to get the visibility status of the oculus guardian?

1 REPLY 1

Sandstedt
Expert Protege

For future Google users:
https://docs.unity3d.com/Packages/com.unity.xr.meta-openxr@2.1/manual/features/boundary-visibility.h...

But if you, like me, are making a Mixed Reality game and use the boundaryless feature, then this documentation is the correct one:
https://developers.meta.com/horizon/documentation/unity/unity-boundaryless/

To enable the guardian:

passthroughLayer.enabled = false;
ovrManager.shouldBoundaryVisibilityBeSuppressed = false;