How to draw a line in debug mode like Debug.DrawLine


How to draw a line only visible in debug mode?

I would like to see the physics racasts by drawing lines in debug mode.

In Unity wa can use this method: Debug.DrawLine();


You can use GeometryRenderer, like this: