how to make a material for unity code example Example: unity set material gameObject.GetComponent<Renderer>().material = newMaterial;