Steps to reproduce:
- Create and open a new 2D UPR project
- Create a Triangle Sprite png in the Project tab (Create -> 2D Sprite -> Triangle)
- Create a Tilemap grid in the Hierarchy
- Open it in the Tile Palette window
- Create a new Tile Palette
- Enable the Tile Palette Edit mode
- Drag the Triangle png into the canvas
- Create an asset from the png
- Observe the Console and Tile Palette
Actual results: "MissingReferenceException: The object of type 'UnityEngine.Tilemaps.Tilemap' has been destroyed but you are still trying to access it." is thrown, the Asset is not instantiated into the Tile Palette
Expected results: Nothing is thrown, the Asset is not instantiated in the Tile Palette
Reproducible with versions: 6000.0.0f1, 6000.0.76f1, 60000.3.16f1, 6000.4.9f1, 6000.5.0b10, 6000.6.0a5
Tested on (OS): Windows 11 Pro (25H2)
Notes:
- Sometimes happens only on the second import of the same png
- jpg files are also affected