How would I change a gameObject's material via scripting?
asked Jul 29 '10 at 12:30 AM
First of all, a GameObject can't have a material. It can, however, have a Renderer, which has a Material: http://unity3d.com/support/documentation/ScriptReference/Renderer-material.html
answered Jul 29 '10 at 12:37 AM