//Gets the renderer material and sets color object.GetComponent<Renderer>().material.color = newColor;