I am sure this is something that has been answered a million times over, but for the life of me, I cant seem to figure it out, nor can I find any helpful info.
I have a mesh (quad) and meshrenderer created in c#. I would like to give the meshrenderer a material that already exists in my resources folder.... Assets/Resources/JmaMaterial
I load the material with... Material mat = Resources.Load<Material>("JmaMaterial");
If I assign it to my meshrenderer like this....
So... obviously im doing something wrong, I try to Google about assigning multiple materials to a mesh, but all the results either have no solution, or they explain how to do it in the editor, not in code.
Is this even the correct way to do an image with multiple parts? (body + hair) Instead of having one quad with 2 materials, should I instead go with 2 mesh quads and each have 1 material?
Thanks for any help