I’m working on emission material and I’m little confused of this tricky behaviour.
Before hitting Play button material color and emission color are white. Start() call method that changes both color from green to red during 5 second animation.
Code used to modify material values:
GetComponent<Renderer>().material.SetColor("_Color", new Color(r, g, b));
GetComponent<Renderer>().material.SetColor("_EmissionColor", new Color(r, g, b));
The thing is that light on walls and floor from this material switch to green at the beginning and not changing even after animation is over and both colors are red.
What can I do to fix this issue?
Gif showing this issue:

Thanks for the reply. I thought so, but I'm still confused. My emmisive material is baked as white and changes to green after i start game so why I see green light instead of white? Is there any possibility to bake 2 different emissive materials (only different colors) so I can switch them during runtime?
– Adrian-S492