calling Gui to be draw on screen

can i verify somthing, im trying to get my image to be drawn on screen every time an event happens. so i set it like thus

bool calling = false;
var text1 : Texture2D;


function event()
{
calling = true;
}

function OnGUI() 
{
if (calling == true)
GUI.DrawTexture(Rect(0,0,0,0),text1); 
}

as long as i attach the guitexture to the object calling should somthing like this work

(rushed scripting and i know there errors as i havent implimented this its simply a question :smile:)

Shouldn’t you try first, and ask if there are problems ?

Edit : didn’t you put a wrong value in Rect ? 0,0,0,0 is nothing.

I should try your right but the thought came to me when i was at work and i needed to write it down and ask yet i not forget