1

I created a color property in the shader graph and set the color through the unity inspector. Then I changed it with the code:

image.material.SetColor("_MainColor", colorNew);

However, I noticed that after the game ends, the material color remains the one I set in the code. It does not revert to the default value, like object coordinates for example.

What am I understanding wrong? How to return the values?

I expected the property values to be returned to default after restarting the game

dezzcore
  • 11
  • 1

0 Answers0