Search Issue Tracker
By Design
Votes
0
Found in
2021.3.35f1
2022.3.19f1
2023.2.9f1
2023.3.0b6
6000.0.0b11
Issue ID
UUM-63263
Regression
No
Assets referenced from Static Fields are unloaded when the Scene gets reloaded
Reproduction steps:
1. Open the attached “static_reset.zip” project
2. Observe the Console
Expected result: No errors are logged since the assets exist
Actual result: Assets get unloaded and errors are logged
Reproducible with: 2021.3.35f1, 2022.3.19f1, 2023.2.9f1, 2023.3.0b6
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Note:
- Modifying any script to trigger a domain reload solves the issue, but if the Scene is reloaded, errors appear again.
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
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
- URP Material Upgrade utility does not enable Alpha Clipping when material had Rendering Mode set to Cutout
- Particle System emission ignores the Sprite Atlas when using a Material that has the "Include in Build" setting unchecked
Resolution Note:
Thank you for reporting a bug to Unity.
Please use HideFlags.DontSave, you can check out the documentation here: https://docs.unity3d.com/ScriptReference/HideFlags.DontSave.html
Today we will be closing this case. Thank you again for taking the time to report this issue.