Permissions
Unity officially supports the Unity OpenXR: Spatial Entities package for Android XR and Meta Horizon OS. On both of these OpenXR runtimes, your app must request required permissions from the user before it can access any spatial data.
The following table lists the required permissions for all Spatial Entities features:
| Runtime | Required permission |
|---|---|
| Android XR | android.permission.SCENE_UNDERSTANDING_COARSE |
| Meta Horizon OS | com.oculus.permission.USE_SCENE |
If your project uses AR Foundation's AR Plane Manager, AR Anchor Manager, or AR Marker Manager components, you should ensure these componets are disabled until after the user has granted the necessary permission. Once permission is granted, you can safely enable these components.
Note
If your app targets an OpenXR runtime that isn't officially supported by Unity, refer to that runtime's documentation to understand if there are any required Android permissions.