Few polygon colliders or many box colliders to cover the floor of a 2D room?

Hi, I have a dungeon made of premade rooms, I need to cover the floor of these rooms with 2D colliders and generate rays at random locations to determine if those points are on the floor.

The rooms have complex shapes, so I can’t use a single box collider 2D; I’m wondering if I should use one/few complex polygon colliders or many box colliders. Which one is the best/light option?

Thanks.

You’ll want to keep the number of colliders smaller, if possible, so I recommend going with polygon colliders.

A polygon collider is no more expensive than a mesh collider, which really isn’t much more expensive than a box collider. The only thing that makes it more expensive is that you likely have more vertices on a polygon or mesh collider.