If I have multiple materials in a single mesh (perhaps this isn’t a good practice anyway), how do I access the several materials? I can’t just refer to renderer.material.
Thanks.
If I have multiple materials in a single mesh (perhaps this isn’t a good practice anyway), how do I access the several materials? I can’t just refer to renderer.material.
Thanks.
renderer.sharedMaterials
http://unity3d.com/Documentation/ScriptReference/Renderer.html