Material Box

Material Box

WEB Design & Material Images

Godot - Making a Button Invisible

Godot

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

Godot

TitleGodot - Making a Button Invisible

CategoryGodot

Created

Update

AuthorYousuke.U