Changing the color of a material for one object

Hello,

I’m making a game where there will be several objects with the same material. However, for one particular object, I want to make it so that if I change the color of the material for said object, it won’t affect the colors of any of the other objects that use said material. How do I do this?

If this is not possible, then is there an alternative method?

In the editor you have to make a new material and set it for that object. In script you can change just one material by accessing the renderer’s material property, when you do that it makes a copy for you (sharedMaterial changes it for everything).