Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2018.4
2019.4
2019.4.17f1
2020.2
2021.1
Issue ID
1303644
Regression
No
Unity crashes when EditorUtility.UnloadUnusedAssetsImmediate is called inside of OnWillCreateAsset/OnWillSaveAsset
Reproduction steps:
1. Open user's attached project
2. In the Hierarchy window, create Empty GameObject (or any other GameObject)
3. Drag it to the Project window
Expected result: Prefab is created or the error appears
Actual result: Project crashes
Reproducible with: 2018.4.30f1, 2019.4.17f1, 2020.2.2f1, 2021.1.0b2
Note: Reproducible when creating a Prefab
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a9