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
-
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- 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 which worked with TMP Font Asset Creator
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.