Search Issue Tracker
By Design
Votes
1
Found in [Package]
1.0.0
Issue ID
1297912
Regression
No
[TileMap] Stuck on Application.UpdateScene when drawing Tiles using Tile Palette
Reproduction steps:
1. Open user attached Project
2. Open "SCENE_NAME" Scene
3. Open Tile Palette, Window -> 2D -> Tile Palette
4. Draw some Tiles in the Scene
5. If the Editor did not throw "Busy Application.UpdateScene" repeat Step 4
Expected result: The Tiles are drawn without issues
Actual result: The Editor gets stuck on Application.UpdateScene
Reproducible with: 1.0.0 (2020.1.17f1, 2020.2.1f1, 2021.1.0b1)
Could not test with: 2018.4, 2019.4 (Compiler errors)
Notes: The Application.UpdateScene can eventually get unstuck after waiting 5min-1h, but moving the mouse to a new tile, causes it try to render a new one freezing the Editor again.
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note:
We have checked out the project and the slowdown you are seeing is due to the use of the CompositeCollider2D with the TilemapCollider2D. It looks like the Physics Shapes for the Sprites used in the Tiles are quite complex which require quite a bit of processing to composite them each time a Tile is placed. More processing is required the more of these Tiles are placed on the Tilemap.
You can do the following if you do not need the CompositeCollider2D to update each time a Tile is placed:
- Disable "Used By Composite" on the TilemapCollider2D and paint your level.
- Once you are happy with the level, if you need the CompositeCollider2D to composite the Physics Shapes, enabled "Used By Composite" on the TilemapCollider2D.
Hope this helps!