Search Issue Tracker
By Design
By Design in 2023.2.X
Votes
0
Found in
2021.3.21f1
2022.2.11f1
2023.1.0b8
2023.2.0a6
Issue ID
UUM-30579
Regression
No
Prefab instance error in the Console when deleting a Prefab that is a child GameObject of a Tilemap and used in a Tilemap Palette
How to reproduce:
1. Open the attached user project “Tilemap_Prefab_Deletion.zip“
2. Open Scene “SampleScene“
3. Create a Sprite GameObject as a child of the Tilemap
4. Create a Prefab by dragging it into the Assets tab
5. Open the Tile Palette (Window>2D>Tile Palette)
6. Select the GameObject Brush located at he bottom section of the window
7. Enable Tile Palette Edit by pressing the pencil symbol at the top right of the window
8. Press I to select the picker tool and press on the created Sprite GameObject in the Scene view
9. Paint with the Brush tool on the palette (the Brush tool is selected automatically after step 8)
10. Save the Palette by repeating step 7
11. Delete the created prefab in the Assets folder
Expected result: No errors in the Console
Actual result: “Problem detected while importing the Prefab file: ‘Assets/New Palette.prefab'.“ error in the Console
Reproducible with: 2021.3.21f1, 2022.2.11f1, 2023.1.0b8, 2023.2.0a6
Can’t test with: 2020.3.46f1 (The Tilemap palette editor doesn’t exist)
Reproduced on: macOS 13.0.1 (Intel), Windows 11 (by reporter)
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
The GameObject Brush uses the Prefab system when painting onto the Tile Palette. This allows users to update the original Prefab and get the changes on the painted instances in the Tile Palette.
When the original Prefab is deleted, the user should get the same error notifying that the original Prefab of a painted instance is no longer in the project. Users will have to restore the original Prefab or removed the painted instances from the Tile Palette to resolve this.
Resolution Note (2023.2.X):
The GameObject Brush uses the Prefab system when painting onto the Tile Palette. This allows users to update the original Prefab and get the changes on the painted instances in the Tile Palette.
When the original Prefab is deleted, the user should get the same error notifying that the original Prefab of a painted instance is no longer in the project. Users will have to restore the original Prefab or removed the painted instances from the Tile Palette to resolve this.