hello i want to use script to upload a outside picture to show on a button,but i am afraid if the link isn’t exist but seams not work, i can got the pic to the button when it exist ,but i can’t change the button’s picture to a default pic when it wan’t exist help
var download = new WWW (“…/Assets/” + “mypic.jpg”);
yield download;
var productPic:Texture = download.texture;
if (productPic==null){
//if the file not exist ,i am not sure what to use ,anyway this isn’t work
getFile( “/Product/Default/”+ DefaultTexture.jpg);
productPic = download.texture;
print(“find error”); }
help help
more problem heppend to the text and bytes, help please
Jonny thanks