Greetings.
It would be very nice, if Debug would have analog of DrawRay, but for BoxCast. Physics2D.BoxCast is one of most frequently used ways to make detection of land, ledges, walls and steps, but since there is no way to visualise work of BoxCast using fail-safe and reliable Unity functions, it is sometimes difficult to understand, if calculations of start position and cast length were correct, where exactly casted collider and it’s way would be. Thus Debug.DrawBox, which would draw rectangle containing box and it’s cast way, would come in handy.
I surely hope I chose correct category and tags to post this request.
Sincerely, realGuybrush.