Search Unity

Draw polygon

Discussion in 'Scripting' started by Deleted User, Apr 20, 2014.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    so i would like to draw some polygons but i don't know how.

    In theory what i would like to do is to make an array of vertecies (x,y,z) ordered clockwise and then put them through some function which would draw my polygon. Does a function like that exist in unity? :confused:

    I would like it to be like a quad (rendered only from one side).

    Could you give me some simple C# code ... for some simple polygon? Like a square or a triangle.

    Thank you! :D
     
  2. Deleted User

    Deleted User

    Guest

  3. Deleted User

    Deleted User

    Guest

  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,442