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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to apply material to mesh in Unity

Discussion in 'General Graphics' started by unithan, Nov 21, 2015.

  1. unithan

    unithan

    Joined:
    May 11, 2014
    Posts:
    8
    I'm attempting to apply materials to meshes in Unity 5. In the image, I have applied the same material to two different meshes. The image is wood grain and displays as desired on the right. On the left, the same material appears as solid brown. I want it to look the same as the material on the right.

    The meshes are imported from Sketchup. This happens in many cases using different textures on different meshes.

    I have grouped the meshes and put them in components in Sketchup, but this doesn't appear to effect the outcome.

    Even on simple shapes that match approximately the height/width ratio of the image being used for the texture, this effect appears. Capture.PNG
     
  2. unithan

    unithan

    Joined:
    May 11, 2014
    Posts:
    8
    I finally solved this. I had to apply the textures to my meshes in Sketchup and then re-apply them in Unity after importing. If I create an object in Sketchup and try to apply the material in Unity, it doesn't work. But if I apply the texture in Sketchup, import it into Unity (the material will not appear on the object initially), then drag the image or material onto the object, it works as expected.
     
    andrasek likes this.