changing and reverting material on instances..

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?

Any help on this appreciated…!

My iPhone performance is going to suffer once every object has been selected once and no materials are shared so it can’t batch together any of the instances…

Is Graphics.DrawMesh any use to you here? You could use the MaterialPropertyBlock option to make temporary changes to the material while drawing the mesh.