how to change an image at runtime unity code example
Example: unity c# change image source
Image[] images = PlayerBarExample.GetComponentsInChildren<Image>(); Image face = images[0]; foreach (Image image in images) { if (image.gameObject.CompareTag("face")) face = image; }