Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.3.0a2
2018.3.3f1
2019.1.0a1
2019.2.0a1
Issue ID
1129891
Regression
No
Tilemap Composite Collider 2D does not update when Sprite Custom Physics Shape is changed
How to reproduce:
1. Open the attached 'TilemapBug.zip' project
2. Go to the Hierarchy -> Grid -> Tilemap and add 'Tilemap Collider 2D' component
3. Go to Project tab, click on the '097518281786' sprite and open it in Sprite Editor
4. Change 'Sprite Editor' mode to 'Custom Physics Shape' and draw a shape, apply the changes
5. Click on the Tilemap
Expected result: Composite Collider 2D is updated
Actual result: Composite Collider 2D does not update
Reproducible: 2017.4.24f1, 2018.3.10f1, 2019.1.0b8, 2019.2.0a9
Can't reproduce: 2018.3.0a1, because can't change Custom Physics Shape in the Sprite Editor
Workaround: Disable and enable 'Tilemap Collider 2D' component
Comments (2)
-
c3bgames
Sep 20, 2020 21:39
I finally got it to take and I guess clear the cache by restarting unity. Not sure why.
-
c3bgames
Sep 20, 2020 20:50
I'm in unity 2019.4.4f1 and I Disable and Enable the Tilemap Collider 2D and the changes made are not applied. How do we reset the Collider2D to get the new changes? Thanks
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
- Multiple errors are thrown in the console while using perforce when moving an asset using shortcuts
- PlayerPropertiesChanged event fires before Player Properties are applied
- Opening Media Pop-out in “Before You Start” Tutorial throws “Styles” and “Styles_Dark” messages in the Console window
- Play Mode Scenario selection/highlight is too long and out of its bounds when the Play Mode Scenario window is opened after maximizing
- Asset name is not shown in the Undo History window when a sprite is modified
Resolution Note:
The TilemapCollider2D, CompositeCollider2D, EdgeCollider2D and PolygonCollider2D store and cache the final Physics Shape/s of the Collider2D which may have been edited and customised by the user. Even though the Sprite's Physics Shape may have changed through user input, we do not change this cached Physics Shape/s as the cached Physics Shape/s may be preferred over the Sprite's changed Physics Shape.
To prevent unwanted hidden changes to the cached Physic Shape/s, we hope that the user can explicitly override it by resetting the affected Collider2Ds to confirm that they want the new changes.