change emission color unity from script code example
Example: unity change emission color script
Material mymat = GetComponent<Renderer>().material; mymat.SetColor("_EmissionColor", Color.red);
Material mymat = GetComponent<Renderer>().material; mymat.SetColor("_EmissionColor", Color.red);