AR Foundation Debug menu
You can add the AR Foundation Debug menu to an AR scene to add a menu of tracking information and available configurations. When that scene is active on a target device, you can use the menu to view the following information:
- Stats Info
- FPS
- Tracking Mode
- Session Configurations
- Camera Configuration
- Debug Options
- XR Origin
- Planes
- Anchors
- Point Clouds
The AR Debug menu works with any scene that contains an ARSession
, an XROrigin
, and a Camera
.
The Debug menu is a Prefab object containing the ARDebugMenu
script and a set of GameObjects and components that provide the UI. See Setting up the menu for instructions to add the Debug menu to a scene.
Setting up the menu
To create an out-of-the-box fully configured debug menu, right-click anywhere in the Hierarchy window and select XR > AR Debug Menu.
Right-click in the Hierarchy window | Select XR |
---|---|
The AR Debug menu appears as a toolbar that is anchored either to the left or bottom side of the screen.
Features
Stats Info
The Stats Info tab provides general information about a session, including current FPS and TrackingMode
.
Stats Info tab
Session Configurations
The Session Configurations tab displays all the available session Configurations
for a specific platform and highlights the currently active configuration.
Session Configurations tab
Camera Configuration
The Camera Configuration tab displays the currently active XRCameraConfiguration
and allows the user to select from other camera configurations that are available for the currently active session Configuration
.
Camera Configuration tab
Debug Options
The Debug Options tab allows the user to toggle visualizers for various ARTrackables in the scene.
Debug Options tab