Button Visibility

Button Visibility

Hi,
I'm trying to make a button invisible once it's been pressed and have created a boolean variable to link to the button. If my understanding is correct, if the variable is switched ON the button should disappear and the opposite if it's OFF.
I have placed a function in a script that sends ON to the variable when the button is pressed, I want this to make the button invisible but I think I maybe misunderstanding the visibility/flashing property of the button.
How can I achieve what I want?
Thanks

This is a migrated post! Originally posted on 27.05.2008 by user madphilly. Please be aware that information can be outdated.