Godot - Making a Button Invisible
This code example shows how to make a Button node invisible using GDScript.
To make a Button node invisible, set the `visible` property to `false`.
When a Button node is made invisible, it will no longer function even if it is clicked.
# Create a Button node
var button = Button.new()
add_child(button)
button.set_text("Button")
# Make the button invisible
button.visible = false
To make the button visible again, set the `visible` property to `true`.
# Make the button visible
button.visible = true