Crosshair Help

This is my crosshair script,

var crosshairTexture : Texture2D;
var position : Rect;

function Start()
{
		position = Rect( ( Screen.width - crosshairTexture.width ) / 2, ( Screen.height - crosshairTexture.height ) / 2, crosshairTexture.width, crosshairTexture.height );
}

function OnGUI()
{
	GUI.DrawTexture(position, crosshairTexture);	
}

How Can I set it so you can only see the crosshair when you hold mouse 1, then when you let go of mouse 1 the crosshair disappears.

You should be able to deactivate the texture on function Start(), activate it if you press mouse1 and deactivate it on release. I don’t know exactly what the function is called, I use keys not mouse, so you’ll wanna look it up but it will look like this:

function Start()
{
    crosshairTexture.SetActiveRecursively(false);
}

function OnMouseDown()
{
    crosshairTexture.SetActiveRecursively(true);
}

function OnMouseUp()
{
    crosshairTexture.SetActiveRecursively(false);
}