Show/hide: Buttons, Labels, Panels

Godot Version

4.2.1

Question

Hi :raising_hand_man:

I use the AnimationPlayer to show buttons and labels and make them hide after two seconds, for example. I also implemented it once with a timer and code, which was relatively complicated.

Is there a simpler solution for this? Perhaps an option that I haven’t found yet?

just three lines of code to achieve this…

$button.visible = true
await get_tree().create_timer(2).timeout
$button.visible = false

2 Likes