I am trying to create a navmesh for a 2D game and I get a division by zero error because depth is 0 and my scene is flat…

How would i fix this?

Edit: I got it to somewhat work by changing the rotation to -90 and moving the number in size.y to size.z…

I am getting another problem where the mesh generated doesnt fill the whole box… just the half.

Edit1: Fixed it by setting the size of Y to 1…

Cant figure out how to get it to see the colliders though.