Offset only top side of the TilemapCollider2D

Hi,

I’m working on a 2D platform game which ground is grass. I want to offset the collider on the top side (where is the grass) in order to have the feet of my character “in” the tile. The issue is that the offset move the whole collision box, so the position is not good on the bottom side. How can I offset only the top side of the collision box ?

Regards

Why don’t you adjust the player collider instead. So that the feet are in the tile?

I thought about this, but going that way will make tricky to handle the case when you have a mix of surfaces. By the way, I think i found the answer with that post Tilemap Collider question. - Questions & Answers - Unity Discussions