How can I hide a GUI.Texture2D?

I need to HIDE GUI.texture2D. or enabled and disabled.

Thanks for your help.!!

/* position of the label that displays an image */

var labelRect    : Rect  =  Rect(0, 0, 100, 100);


/* position of a button that toggles visibility */

var buttonRect   : Rect  =  Rect(0, 100, 100, 100);


/* the image to display in the label */

var theImage  :  Texture2D;


/* a variable to keep track of whether or not to display the image */

var isVisible : boolean  =  true;


function OnGUI ()
{
	
	/* display an image if isVisible is true */

	if ( isVisible ) {
		GUI.Label(labelRect, theImage);
	}

	/* display a button that toggles the state of isVisible */

	if ( GUI.Button(buttonRect, "Toggle Visibility") ) {
		isVisible = ! isVisible;
	}
}

for enable/disable, simply do

GUI.enabled = false;
GUI.Label(...)
// re-eneable it for every GUI calls afterwards
GUI.enabled = true;

if you want to hide a GUI element, then simply don’t call it in the OnGUI function, surround it with if else.