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
- Too little validation messages in the "WebAssembly Language Features" Memory settings
- Project Settings Search Highlights are misaligned when using the Bitmap Text Rendering Mode
- "GetControlID at event ValidateCommand returns a controlID different from the one in Layout event" Warning is thrown when undoing the deletion of Sprite Shape Profile
- Memory related fields in the "WebAssembly Language Features" can be set to the negative numbers
- "WebAssembly Language Features" Header in the Player Settings has a smaller indentation
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.