Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.2.0a1
2019.2.8f1
2019.3.0a1
2020.1.0a1
Issue ID
1189728
Regression
No
TilemapCollider2d generates Collider shape when Generate Physics Shape is not set and Custom Physics shape is set to zero
To reproduce:
1. Open attached project ("case_1189728-Sample.zip")
2. Select "Grid" Game Object in the Hierarchy
3. Open Tile Palette window and select "Test" palette
4. Paint the sprite with the selected palette to the Scene
Expected result: Painted sprite has no Collider shape
Actual result: Painted sprite has Collider shape
Reproducible in: 2017.4.33f1, 2018.4.11f1, 2019.2.9f1, 2019.3.0b7, 2020.1.0a8
Note - The Collider shape will not be generated in the built Player
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
- "GetPreferedValue" returns max value when using auto-sizing
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
- “Assertion failed on expression” errors thrown when undoing Nodes creation with keyboard shortcut
- Crash on various stack traces when using Texture2D.CreateExternalTexture() while rendering
- Clicking on section text in Node Library > Context folder throws NullReferenceException errors
Resolution Note (2020.1.X):
For Tiles which do not generate a Collider Shape, we would recommend setting the Tile's Collider Type to None. Setting this will make the TilemapCollider2D not create a Collider Shape for this Tile.
In the future, we could introduce a new Collider Type which specifically generates a Tile's Collider Shape from the Sprite's Physics Shape instead of the current behaviour where it tries to generate a Collider Shape from the Sprite's Physics Shape first and the Sprite's outline if the Physics Shape does not exist.