Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.3.X, 2020.1.X
Votes
3
Found in
2019.1.0b10
2019.2.0a10
2019.3
2019.3.7f1
2020.1
2020.2
Issue ID
1240640
Regression
Yes
Entering / leaving Play mode results in long wait times when a specific prefab with Grid / Tilemap components is in the scene
How to reproduce:
1. Create a new project
2. Import the prefab "prefab.unitypackage"
3. Drag the prefab to Hierarchy
4. Enter Play mode
Expected result: entering play mode takes around 1-2 seconds
Actual result: enter Play mode takes around 1-2 minutes, leaving the Play mode takes around 3-5 minutes
Reproducible with: 2019.1.0b10, 2019.1.14f1, 2019.2.0a10, 2019.2.21f1, 2019.3.12f1, 2020.1.0b8, 2020.2.0a9
Not reproducible with: 2018.4.0f1, 2018.4.22f1, 2019.1.0a1, 2019.1.0b7
Could not test with: 2017.4.40f1 (old prefab system)
Workaround information: The internal data structure of the Tilemap has changed for better runtime memory usage. Tilemaps which are loaded, for example in the scene, will be updated to use the new internal data structure. Unfortunately, the Tilemaps in prefabs will not be updated unless they are loaded (causing an update) and saved back as a prefab asset. This causes a slowdown for Tilemap prefab instances as the Tilemap instance in the scene differs from the Tilemap in the prefab, as shown in the Profiler, because the Tilemap instance has been updated while the prefab asset has not.
To resolve this, you will need to update the Tilemap prefab asset. You can do so with the following steps:
Select the Tilemap prefab asset in the Project Window
Double-click and open it in Prefab mode
Dirty the prefab instance to trigger the Save option (eg. changing and resetting the X position for the transform
Save the Tilemap prefab asset
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 (fix version 2020.1):
A fix for this issue will be available on Unity 2020.1.0b10 and above
Resolution Note (fix version 2019.3):
Verified in:
Version 2019.3.16f1