Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,350