Search Issue Tracker

Fixed in 10.1.0

Fixed in 7.5.2, 8.3.1

Votes

0

Found in [Package]

7.3.1

Issue ID

1252263

Regression

No

[Universal RP] MissingReferenceException errors when removing missing camera from stack

Package: Scriptable Render Pipeline Universal

-

Steps to repro:
1. open a new universalRP
2. add a new camera, set the type to overlay
3. add your new camera to Main Camera > stack (add twice)
4. add another camera, set the type to overlay
5. add the second new camera to the stack (add one time)

you should have 3 entries in the stack now

4. in hierarchy, delete the new camera game object
5. observe the first error
6. In inspector, remove both "Missing Camera" from the Main Camera > Stack
7. observe the second error

Expected: missing camera is not invoked
Actual: missing camera is invoked causing MissingReferenceException

repro: 2019.3.15f1 + URP 7.3.1

Notes:
- does not repro with only 1 "Missing Camera" in the stack
- does not repro with 2 "Missing camera" and no other camera in the stack
- error at step 5: MissingReferenceException: The object of type 'Camera' has been destroyed but you are still trying to access it.
- error at step 7: MissingReferenceException: The variable m_Cameras of UniversalAdditionalCameraData doesn't exist anymore.

  1. Response avatar

    Resolution Note (fix version 10.1.0):

    Fixed and is now removing missing cameras from camera stacks when viewing base camera or running the project.

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.