I have an image that I want to be able to be shown in the GUI. I’ve made a variable for the texture, but I can’t use the Inspector to assign the image. How would I go about assigning the image to the texture variable? I have this:
var axeTexture : Texture;
function Start ()
{
axeTexture = Resources.Load("axe");
}
function OnGUI ()
{
GUI.DrawTexture(Rect(Screen.width/2-49, Screen.height/2-47,98,94), axeTexture);
}