i have been using debug.drawline to debug with gizmos turned on
but the lines are extremely thin, and hard to see
even if I zoom in on the scene, the line has the same thin thickness always
Is it possible to change the thickness of the lines?
//Draw many debug lines for good visibility
public void DrawThickDebugLine(Vector3 start, Vector3 end, Color color, float thickness = 0.02f, int resolution = 3)
{
float halfThickness = thickness / 2f;
// Loop through all axis offsets
for (int x = -resolution; x <= resolution; x++)
{
for (int y = -resolution; y <= resolution; y++)
{
for (int z = -resolution; z <= resolution; z++)
{
Vector3 offset = new Vector3(x, y, z) * (halfThickness / resolution);
Debug.DrawLine(start + offset, end + offset, color);
}
}
}
}
for now i have settled for this method that simply draws many lines, so that they become easily visible
but there is another issue, the lines do not clip through geometry and always render on top of everything
Is it possible to make lines be obscured by geometry if the position of the line would call for it?
thanks in advance!