GL.Lines drawing over Game Objects (2D)

Hi, I realize this question has been asked before and “solved” here, but the solution pointed out there does not work for me.
I’m using the following material for the lines:

@"Shader ""Lines/Colored Blended"" {
    SubShader {
        Tags { ""RenderType""=""Opaque"" }
            Pass {
                ZWrite On
                ZTest LEqual
                Cull Off
                Fog { Mode Off }
                BindChannels {
                    Bind ""vertex"", vertex Bind ""color"", color
                }
            }
        }
    }
}

And I’m drawing the lines using the following code in OnRenderObject():

lineMaterial.setPass(0);
GL.PushMatrix();
GL.Begin(GL.LINES);
//Specify a bunch of GL.Vertex3
GL.End();
GL.PopMatrix();

And it’s still drawing over any other objects, regardless of its z-depth. As you can see my material has ZWrite On, and ZTest on LEqual.
Can anyone help me out with this? Thank you for your time. I’ll be happy to provide more details.

Hi there.
I was having the same problem (having the lines drawn OVER my GameObjects), in my case, I needed the lines going from one object to the other.

I don’t know if this could help you… But, I created my material on the Project tab (not by script). There, I changed the Shader to UI/Default:

52975-captura-de-pantalla-2015-08-27-a-las-183033.png

And this is the result (the line goes from the center of each sphere):

52976-captura-de-pantalla-2015-08-27-a-las-183101.png