I’m having abit of a problem working out how to do the following:-
I have a number of objects which are instances of the same prefab.
I want these to use the same shared material for better batchin during render.
At some point, I need to change the material of 1 object.
right now I’m doing:-
objRender.renderer.material.SetColor …
now, this makes the objects material an instance of the shared one.
What I’d like to be abnle to do, is revert this instance to use the shared material again when I no longer need to make it look different.
How do I do this?