Unity Issue Tracker - AR Debug Menu throws "Failed to find ARSession" and “NullReferenceException” errors when entering Play Mode
Open
UUM-144301
AR Debug Menu throws "Failed to find ARSession" and “NullReferenceException” errors when entering Play Mode
Package: AR Foundation
Open
6.6.X
Steps to reproduce:
1. Create Unity project using Universal 3D Template
2. Open Package Manager window
3. Install Apple visionOS XR Plugin package
4. Create AR Debug Menu GO in Hierarchy window (XR > AR Debug Menu)
5. Enter Play Mode
6. Observe the Console window
Actual results: Failed to find ARSession in current scene. As a result, this component will be disabled.” and “NullReferenceException” errors are thrown in the Console window
Expected results: No errors are thrown in the Console window
Reproducible with versions: 6000.0.76f1, 6000.3.17f1, 6000.4.11f1, 6000.5.0b12, 6000.6.0a7
Tested on (OS): macOS Tahoe 26.4.1
Failed to find ARSession in current scene. As a result, this component will be disabled.
UnityEngine.XR.ARFoundation.ARDebugMenu:OnEnable () (at ./Library/PackageCache/com.unity.xr.arfoundation@f996f0242444/Runtime/ARFoundation/ARDebugMenu.cs:541)
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.XR.ARFoundation.ARDebugMenu.ConfigureButtons () (at ./Library/PackageCache/com.unity.xr.arfoundation@f996f0242444/Runtime/ARFoundation/ARDebugMenu.cs:748)
UnityEngine.XR.ARFoundation.ARDebugMenu.OnEnable () (at ./Library/PackageCache/com.unity.xr.arfoundation@f996f0242444/Runtime/ARFoundation/ARDebugMenu.cs:542)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?