how to add your own custom material unity code example Example: unity set material gameObject.GetComponent<Renderer>().material = newMaterial;