Code (JavaScript): var Note : Texture; var noteInRange; public var guiSkin : GUISkin; function Start() { Note = Resources.Load("TableNote"); } function OnTriggerStay() { noteInRange = true; } function OnTriggerExit() { noteInRange = false; } function OnGUI() { if(noteInRange == true) { GUI.skin = guiSkin; GUI.Label (Rect (Screen.width/2-50, Screen.height/2-55, 120, 50), "Read Note"); if(Input.GetKeyDown(KeyCode.E)) { GUI.DrawTexture(Rect(100,100,100,100), Note); } } } Can I get some pointers on the best way to display an image on screen? This doesn't draw it to the screen, but I want it to.
You can put the image inside a GUI.Box, in a GUI.Label, etc., just instead of a string, use the image.