I have a material that is used in a scene on a large number of different objects. I would like to change the color of the material for ALL of the objects collectively. Changing it for indivual objects seems obvious enough but quite tedious - is there a way through scripting to change the material itself so that all objects using it have their colors updated as well?
Thanks
In the editor, changing the material color affects the material, not the object.
In script, use renderer.sharedMaterial
Although keep in mind that changing sharedMaterial will permanently change that material in your project. You can get around that by storing the original settings on awake and restoring them with an OnApplicationQuit function, or something.
–Eric
Thanks, guys. I’ll try that.