how to set source image to an image from code unity code example
Example: unity change the source image or image
public Image test;
public Sprite example;
void Start()
{
test.sprite = example; //change the source image of the image "test" to the sprite "example"
}