- Home /
How do I add a second material to my mesh?
I have attempted to import this as a .dae, an .obj, and then through .blend as recommended by Unity blender import page. All have failed.
I am unable to add materials I have set up to the model in place of the defaults given during import. This error only occurs for the first material field but not the second.
I am able to apply a texture to the first fields material, but I wish to use the materials I set up so objects in the scene which use the same material can all use stone floor verses material 01, material 03, material 04 for every new mesh or prefab.
I have searched for the answer to this, and I am not making progress, please help.
Answer by MarkD · Oct 12, 2013 at 09:37 AM
If you click on your mesh in-game you should see a Mesh Renderer component on your object. In there you have materials and if you look close you see the amount of materials on the object, which is by standard 1, if you put it on 2 you can drag another material on-top of your current one and with alpha channels you'l be able to merge them, they are drawn over each other from top to bottom.
So it was set to 2, what happened is I didn't see the $$anonymous$$aterials > tab cause it wasn't in bold, and the window was collapsed. Thank you so much, for guiding me to the solution!
I know this is two and a half years old but I can't seem to get an answer from anyone on my own thread. $$anonymous$$aybe one of you guys know. I can see how Unity with re-draw meshes over old ones, as you say, so that you can add more materials (like to add an outline, for instance). The problem is, I have some meshes that have two materials (one for body and one for hair). The way it's set up is material 0 is for the hair, 1 is for the body. If I add an index 2, it's applied to the hair so I can add an outline to the person's hair. If I had a material 3, however, it's also applied to the hair. I can't add additional materials for the submesh that's using material 1. This is killing me. I don't want to have to mess with all the various shaders I have throughout the game so that a SINGLE set of materials will work and outlines can be turned off and on. I don't know enough about shaders. I would REALLY like to just add new materials for the outline ins$$anonymous$$d. I can do this if an object as just one material. Any ideas for applying another material to the second index in a two-material mesh?
@ChristmasEve i would love to know that as well! Did you find a solution? ,@ChristmasEve i would love to know that as well! Did you find a solution?