How do I make a GUI disappear when I click it?
try this code :
funtion OnMouseUp ()
{
guiTexture.enabled = false;
}
I don’t know whether it works, but just try something like this:
function OnGUI () {
if(!Input.GetMouseButton(1)) {
//put your GUI here
}
}