private Renderer materialRender; void Start() { materialRender = GetComponent<Renderer>(); materialRender.material.color = new Color(1f, 0f, 1f, 1f); //Color(r, g, b, a) }