Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unable to apply different textures to two identical meshes

Discussion in 'Editor & General Support' started by YtinuBoon, Jul 18, 2016.

  1. YtinuBoon

    YtinuBoon

    Joined:
    Jul 18, 2016
    Posts:
    2
    Hello,

    I have two identical meshes (same geometry, materials and same UV mapping), each created in Blender and with its own name. Both have been added to the Meshes folder under assets, individual textures and normals under the Textures folder.

    The problem I have is when I assign a texture and normal to one mesh, the second mesh gets the same textures and normals, thus I am unable to create assets for my game. I even tried to export each mesh from its own individual .blend file and same problem occurs.

    Is this a limitation of Unity Personal, or am I missing a setting or using the wrong workflow?

    Thanks!
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    Your textures are set per-material, not per-mesh. It is possible to have just a single mesh rendered multiple times with different textures.

    In your assets folder, create new materials and assign a texture to them, then assign those materials to the mesh renderer component of the objects with the meshes. Let me know if you need more details.
     
    YtinuBoon likes this.
  3. YtinuBoon

    YtinuBoon

    Joined:
    Jul 18, 2016
    Posts:
    2
    Thanks Gambit, this worked! I ended up creating materials with different naming for each of the faces I wanted different texturing in Blender, then applied the textures in the Unity editor.
     
  4. aer0ace

    aer0ace

    Joined:
    May 11, 2012
    Posts:
    1,511
    As an alternative, you can set your import settings to import by material, and specify different materials in Blender, so you don't have to manually do it in Unity.