Search Unity

Multiple Textures on Generated Mesh

Discussion in 'Scripting' started by an, Dec 4, 2012.

  1. an

    an

    Joined:
    Oct 6, 2009
    Posts:
    146
    Hey CommUnity,

    I'm generating a custom Mesh consisting out of lots of 1*1 planes with 2 tris. For performance reasons they're rendered into one big mesh instead of many single ones. Is there a possibility to apply different textures to those small planes, although they're all 1 big single mesh in the end?

    Thank you so much,
    an
     
    Last edited: Dec 4, 2012
  2. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,039
    Create a single textures and map the UV coords for each plane onto the appropriate spot of the texture.
     
  3. an

    an

    Joined:
    Oct 6, 2009
    Posts:
    146
    Perfect, gonna try that out. Thank you :)