Hi its been 8 and a half hours and i dont know what im doing wrong here. I have a picture called loading and i want to show it after play is pressed… then load the level. Im not getting any errors either. My picture is in the correct resources folder too.
Here is the code.
#pragma strict
var img : Texture2D;
img = Resources.Load("loadingpicture");
function OnGUI () {
if (GUI.Button (Rect (10,10,500,500), "I am a button")) {
img = Resources.Load("loadingpicture");
}
}
the “loadingpicture” never shows when i click the button. Can anyone please help?