Search Unity

Unity Scripting Reference lacks an entry for GL.lineWidth

Discussion in 'Documentation' started by a_p_u_r_o, Jun 21, 2016.

  1. a_p_u_r_o

    a_p_u_r_o

    Joined:
    May 27, 2015
    Posts:
    23
    There should be an entry for GL.lineWidth denoting NOT IMPLEMENTED.

    There is no way to specify line's thickness. (other than color)

    Same applies to Gizmos.lineWidth.

    search keyword: glLineWidth()
     
    SamFernGamer4k likes this.
  2. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    You can have a look here for implementing quads using OpenGL
    http://wiki.unity3d.com/index.php?title=VectorLine
     
    SamFernGamer4k likes this.
  3. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    It's quite unlikely we'll expose OpenGL's line width. It only works on OpenGL and nowhere else (not even OpenGL ES), and the drivers internally just "emulate" it anyway, by drawing quads for each line segment.

    (btw "GL" class name in Unity is more like a "Graphics Library" -- it does not, and never has, been "expose OpenGL API")
     
    SamFernGamer4k and EZaca like this.