Search Issue Tracker
Fixed in 2020.2.X
Votes
1
Found in
2020.2.0a5
2020.2.0a9
Issue ID
1241125
Regression
Yes
[2D Tilemap] ArgumentNullException error is thrown on deleting Tilemap prefab after unpacking the instance of that prefab
-ArgumentNullException error is thrown on deleting Tilemap prefab after unpacking the instance of that prefab.
-After this, the error will be thrown for any prefab deletion, if the Tile Palette window is opened.
Steps to repro:
1. Open the attached project.
2. Windows > 2D > Tile Palette.
3. Hierarchy > Select Tilemap > Right Click > Prefab > Unpack Completely..
4. Project Window > Delete Tilemap prefab.
Actual Result:
ArgumentNullException error in thrown the console.
Expected Result:
No error in the console.
Reproducible in:
2020.2.0a9, 2020.2.0a5.
Working Fine in:
2020.2.0a4, 2020.1.0b8.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stack trace:
ArgumentNullException: Value cannot be null.
Parameter name: componentOrGameObject
UnityEditor.PrefabUtility.GetPrefabAssetType (UnityEngine.Object componentOrGameObject) (at <5951c2421c324f47883bd5ba8a4bf507>:0)
UnityEditor.GameObjectInspector.CalculatePrefabStatus () (at <5951c2421c324f47883bd5ba8a4bf507>:0)
UnityEditor.GameObjectInspector.OnForceReloadInspector () (at <5951c2421c324f47883bd5ba8a4bf507>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
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
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
Resolution Note (fix version 2020.2):
2D: Fix ArgumentNullException thrown when a Prefab is deleted while the Tile Palette window is open