Search Unity

Texturing a mesh generated by script

Discussion in 'Scripting' started by kaarme, Aug 1, 2015.

  1. kaarme

    kaarme

    Joined:
    May 1, 2014
    Posts:
    177
    I have some trouble uv mapping and texturing my mesh. I really need help learning how this works. http://pastebin.com/AM54i1aA
    I tried to uv map sides but it is stretched and height texture doesn't affect it. My script generates a 3d mesh from a 2d shape. I posted this a while ago but somehow it got deleted and I don't know why.
     
  2. kaarme

    kaarme

    Joined:
    May 1, 2014
    Posts:
    177
    Any help?