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

Package: 2D Tilemap

-

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.

  1. 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!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.