unity set emission color in 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);