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