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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2020.2):
2D: Fix ArgumentNullException thrown when a Prefab is deleted while the Tile Palette window is open