Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

5.2.0

6.1.0

Issue ID

ARFB-559

Regression

Yes

"MissingReferenceException" of 'UnityEngine.Camera' errors are being spammed when entering Play Mode with XR Simulation enabled

Package: AR Foundation

-

Reproduction steps:

1. Open the attached project “ReproProject“
2. Open scene “SampleScene2“
3. Enter Play Mode
4. Observe the result in the Console

Expected result: No errors in the Console
Actual result: Errors are continuously logged in the Console after entering Play Mode

Reproducible in: 5.2.0 (2023.1.0b10 (unstable), 2023.3.0b10), 6.1.0 (6000.0.46f1, 6000.1.0b14, 6000.2.0a8)
Not reproducible: 5.0.7 (2021.3.49f1), 5.2.0 (2022.3.61f1)
Could not test with: 5.2.0 (2023.1.0a1 - 2023.1.0b9) (Editor crashes after entering Play Mode)

Reproducible on: Windows 11, macOS 15.3.2 (M2 Max) (user)
Not reproducible on: No other environments tested

Note: If the issue did not reproduce upon entering Play Mode, try exiting and entering Play Mode again

  1. Resolution Note:

    It is not supported to interrupt a load of a scene with ARFoundation elements inside of a function called via the attribute [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.