unity change image texture with a button code example Example: unity update method button ghange photo gameObject.GetComponent<Image>().image