Hello,
In my script I am setting the color of Unity 5 standard shader via the following:
GetComponent().material.SetColor( “_Color”, Color.Red);
when running the game, the color changes correctly,
However, when I end the game, the material is permanently changed inside Unity. It does not return to it’s original color.
I don’t understand this. This is inconsistent with how other GetComponent calls and manipulations operate in Unity.
Is there another way of setting the color?
Unity 5.0.2
Thanks.