Search Issue Tracker
Third Party Issue
Under Consideration for 2021.2.X, 2022.1.X
Votes
0
Found in
2021.2.10f1
2022.1.0b7
Issue ID
UUM-2667
Regression
No
MissingReferenceException on the VolumeManager when entering Play mode
How to reproduce:
1. Open the user's attached project
2. Open the 'Operator' Scene
3. Enter the Play mode
Expected result: No exceptions are in the Console
Actual result: Multiple 'MissingReferenceException: The object of type 'Volume' has been destroyed but you are still trying to access it.' are thrown in the Console
Reproducible with: 12.1.4 (2021.2.10f1), 13.1.5 (2022.1.0b7)
Could not test with: 7.7.1 (2019.4.35f1), 10.8.1 (2020.3.27f1) (Multiple compile errors), 14.0.0 (2022.2.0a4) ('Exception: SteamApi_Init returned false. Steam isn't running, couldn't find Steam, AppId is ureleased, Don't own AppId.')
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
Resolution Note:
The issue is caused by double-registration of Volume components into VolumeManager by user code (DesktopManager.OnValidate() calling SetActive()). It is not supported to do object modifications such as calling SetActive() from OnValidate() (see https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnValidate.html). You can use EditorApplication.delayCall to defer the activation logic.