Forum Discussion
VR_Dings
2 years agoHonored Guest
Disable guardian at runtime in Mixed Reality Apps (Unity)
Hi! I'm in the process of creating a mixed reality app that integrates both passthrough functionality and the Scene API. Despite conducting a full room scan and navigating around, the guardian system continues to restrict the app. I'm searching for a way to programmatically deactivate the guardian system, either in Unreal or Unity. Considering that Meta's "First Encounter" demo doesn't encounter these boundary issues, I'm convinced there must be a way to resolve this.
Thank u!
14 Replies
- domexieExplorer
<uses-feature android:name="com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP" android:required="true" />Add this to AndroidManifest.xml, it just works!
- acr0merExplorerThats funtastic but as always under unity topic 🙂 do you know how you can implement to the unrealactualy its all about android mainfest xml file butProblem is Unreal documention say "You should never edit the AndroidManifest.xml file under any circumstances. Any edits that need to be made to the AndroidManifest.xml file should be done inside the UE Editor in the Advanced APK Packing section."I couldn't figure out how to add the code to that section.when i add as a extra setting (code line) i couldnt build it i can try as a tag but i dont know how does it workany idea would help
- Peter_BIMHoloviewExplorer
That's works. But when we try and submit that to Store we get an error about containing an experimental feature.
- SandstedtStart Partner
You have probably checked the "Experimental features enabled" checkbox in OVR Manager. Maybe to use the experimental depth API, that is... experimental. And experimental features are not allowed on AppLab or the Store. So I guess you need to wait until the feature is production ready, or you need to contact your Meta developer relation contact if you have one and ask if they can make an exception.
- Peter_BIMHoloviewExplorer
The thing is there are Store applications (e.g. Arkio) that have this feature enabled - and those vendors have had a special dispensation to use this feature. I wish that if a feature is available to should be available to all ISVs not just select ones!!!
- childlifetech.devProtege
Thank you so much domexie!!! I've been waiting for this feature for a year!
- kennard-consultingExpert Protege
Man, I could really do with this for my app PozeAR.
When I turn it on, it works great, but then I can't upload the APK to App Lab 😞
Please Meta allow us to use this feature!
- kennard-consultingExpert Protege
Sandstedt fair point, but it's not the 'Experimental Features Enabled' checkbox. It's specifically this flag. The error even says "This APK includes the feature, `com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP`, which is not allowed"
- end7791Explorer
I got this working but I still have to start the app inside of the boundary. Is there a way to change this?
- zander.codesHonored Guest
What did you do??? I have the same problem
- end7791Explorer
Are you using Unity? I am writing an app in native openxr based on XrApp.h. So i had to add a block of code to create the passthrough layer and start it in the SessionInit function. I also added a block into PreProjectionAddLayer to add the passthrough composition layer. And of course I had to add the capability to the AndroidManifest.xml.
- kennard-consultingExpert Protege
Please vote for this issue here:
If it gets enough votes, Meta might listen to us.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device