Tilemap Collider 2D doesn't work for me


I have applied TilemapCollider2D, a kinematic Rigidbody2D and a Composite Collider. I have set the TilemapCollider2D Composite Operation to Merge, but no hitboxes are showing up. I’m thinking that it’s some sort of bug with Unity 6, but all the tutorials are from older versions. I copy exactly what they do, and it doesn’t work.

Can anyone help?

If you think it’s a bug then I can only presume you already know how to specify collision shapes in your tiles, have done that and it still doesn’t work?

FYI: It cannot automatically know which tiles do/don’t have collision shapes and what those shapes are.

Note: Why are you using a Composite? Too many “tutorials” add that by default and it’s kind of strange to do it without knowing why you might need it TBH. :slight_smile: Not that this relates to your problem.

Ok so I figured it out. I had been using 1 pixel big squares as placeholders. In the inspector, I made them 1 pixel per unit, but that didn’t work.

Then I dragged a different object onto the tilemap and that had a collider. So I’m just assuming that the pixel is too small to have a hitbox. Problem solved :D.