Search Unity

two uvs in one mesh

Discussion in 'Editor & General Support' started by SympaK, Sep 17, 2020.

  1. SympaK

    SympaK

    Joined:
    Apr 14, 2010
    Posts:
    134
    I guess that this argument has been discussed too much, but each one has its own details, so I post mine. I loaded in the editor a mesh with 3 materials, of which 2 share one texture which is mapped in a uv, whilst the third has a texture which is mapped in separated uv. The imported mesh visualizes only the former 2 textures: the third texture doesn't get visualized. What happens?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    I don't think Unity's built-in shaders support multiple UV maps. You'll have to make your own shader.
     
  3. SympaK

    SympaK

    Joined:
    Apr 14, 2010
    Posts:
    134
    A 10 years problem.
     
  4. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,572
    You don't mention changing Materials > Size to 3 on the Mesh Renderer, then filling the 3 Elements with materials. Have you tried that?
     
  5. SympaK

    SympaK

    Joined:
    Apr 14, 2010
    Posts:
    134
    Nope, I didn't tried that, simply 'cause I wasn't aware of such an option.
     
  6. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,572
    It isn't the most obvious option, but can be useful. Hopefully it is for you.
     
  7. SympaK

    SympaK

    Joined:
    Apr 14, 2010
    Posts:
    134
    Added a third material (btw, the other two materials was already filled and listed). When I release the model, the third one vanishes. The object got anyway 3 materials. Perhaps it is me the one who's mistaking something.
     
    Last edited: Sep 18, 2020