- Home /
TileMap Error on runtime/pressing play
Hi, I have been getting tile map errors when I have something selected in the hierarchy and press play I get a non intrusive error that says the following two errors. First error: NullReferenceException: Object reference not set to an instance of an object UnityEditor.GameObjectInspector.ClearPreviewCache () (at :0) UnityEditor.GameObjectInspector.ReloadPreviewInstances () (at :0) UnityEditor.GameObjectInspector.OnForceReloadInspector () (at :0) UnityEditor.Tilemaps.GridPaintPaletteWindow:OnDisable() (at C:/Program Files/Unity/Hub/Editor/2020.1.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.tilemap/Editor/GridPaintPaletteWindow.cs:817)
Second Error Involving the Clip Board: NullReferenceException: Object reference not set to an instance of an object UnityEditor.GameObjectInspector.ClearPreviewCache () (at :0) UnityEditor.GameObjectInspector.ReloadPreviewInstances () (at :0) UnityEditor.GameObjectInspector.OnForceReloadInspector () (at :0) UnityEditor.Tilemaps.GridPaintPaletteClipboard:OnDisable() (at C:/Program Files/Unity/Hub/Editor/2020.1.4f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.tilemap/Editor/GridPaintPaletteClipboard.cs:347)
I have uninstalled and reinstalled the tilemap packages in the package manager. I have tried upgrading and downgrading the editor from 2019 to 2020 to 2019 back to 2020. I have tried remaking the maps and changing tiles.
I have google searched the error and looked at tutorials on how tile maps work and found nothing.
Any Help fixing this error would be much appreciated.
Answer by LordDarkenon · Mar 21, 2021 at 07:00 PM
I'm also getting this error since upgrading to 2020.3.0f1. This seems to have been logged before and fixed for 2020.1 - but I don't know whether this has been raised again for 2020.3 LTS