What component do I need to apply customized boundaries to gameobjects?

Trying to recreate Earthbound, but Tilemap Collider 2D clearly will not suffice for how to create the boundaries properly.

Say I want to implement a building, one of the simplest types of objects to design a boundary for. Naturally, I would want to design it such that it runs along the edges of the walls, not up the backright wall and across the roof. That way, Ness can still walk behind it as it obscures his sprite, and if he walks up to it from in front, his sprite will take priority as a layer.

What component should I consider for something like this?

Hey,

You’ll likely want to use a PolygonCollider2D. You can edit the collider to be whatever shape you like.