How to make bounding box of GamObjects visible in scene view

Hi there,

I’m just wondering if it’s possible to view the “Bounding Box” of a game object in the scene view the same way that you can see a game object’s BoxCollider2D?

Am I right in saying that the visible lines that form a square/rectangle that represent the BoxCollider2D of a game object in scene view are basically the same as the four lines of a Bounding Box?

Any help would be appreciated.

Thanks

I’m just wondering if it’s possible to view the “Bounding Box” of a game object in the scene view the same way that you can see a game object’s BoxCollider2D?
Use LineRenderer. Using info from bounds of collider, you can calculate the position of 4 “bounding” points of the box. Then pass those 4 points pos to SetPositions method of LineRenderer.
Am I right in saying that the visible lines that form a square/rectangle that represent the BoxCollider2D of a game object in scene view are basically the same as the four lines of a Bounding Box?
it’s true