Change button image

Hi, I want to ask how can I change button image using WWW class. I’m still new in unity.

Hi,
To change the image of a button you should do something like this:

public Button button;
public Sprite image1;
public Sprite image2;

void ShowImage1 () {
button.image.overrideSprite = image1;
}

void ShowImage2 () {
button.image.overrideSprite = image2;
}

make sure you put: using UnityEngine.UI; at the top of the script