Search Unity

mesh question

Discussion in 'Scripting' started by joe gamble, Dec 4, 2007.

  1. joe gamble

    joe gamble

    Joined:
    Jan 3, 2007
    Posts:
    85
    If I modify a mesh procedurally through a javascript and remove one or more vertex does unity automatically modify any triangle that used those vertices?

    Does it just remove that triangle from the triangle array?

    Also what happens in the reverse situation, if I remove a trangle, what happens the the vertices array?

    I haven't tried this yet I was just wondering if anyone knew the answer already.
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    No, you get an error.

    This is OK - it will just ignore the unused verts.
     
  3. joe gamble

    joe gamble

    Joined:
    Jan 3, 2007
    Posts:
    85