I’ve tried pretty much everything I can think of.
I’m drawing lines with GL.Begin(GL.LINES) in an EditorWindow. For some reason, it draws in the tab section too.

Is it possible to prevent that from occurring?
I’ve tried pretty much everything I can think of.
I’m drawing lines with GL.Begin(GL.LINES) in an EditorWindow. For some reason, it draws in the tab section too.

Is it possible to prevent that from occurring?
Very old post, but I just figured it out for me and I thought it might be helpfull for someone else.
You have to adjust thet GL Viewport:
GL.Viewport(new Rect(0, -25, Screen.width, Screen.height));
However for some reason this stretches everything in a weird way so you have to adjust the y component of your verticies:
float v = (y / Screen.height) * 25;
GL.Vertex3(x, (y + v) - 25, 0);
Hope it helps someone.