No one of those below works! How to just disable a button?

get_tree().get_root().get_node("Control").LoadButton.disable = true
get_tree().get_root().get_node("Control").LoadButton.disable(true)
get_tree().get_root().get_node("Control").LoadButton.disable()
get_tree().get_root().get_node("Control").LoadButton.set_disable()

anyone please? All the documentation is like the example above but it doesn't work

I tried also: get_tree().get_root().get_node("Control").get_node("LoadButton").disable = true

nothing!

How is it not working? Are you getting any errors in the Godot console?

The property name for disabling a button is disabled, so that might be something to try as well. I know I have used code like button_node_here.disabled = true without any issue in Godot.

Error because it is a boolean val... but if I use the property "visible" it does work! ... mmmhhh

10 months later

Worked for me based on this topic:

$buttonNode.disabled = true (run evertthing you need here) $buttonNode.disabled = false

a year later