Toggle a Button with code?

Godot Version

4.3

Question

Greetings,

In my game I have a toggle button (the player presses) which activates a process and I want to automatically un-toggle the button (per script) once the process is over. This avoids the player having to do so manually to reset the “machine”.

Is this possible? I could not find any method to do so.

Paul

I think you can call button_pressed

I swear I tried that…but somehow now it works.
Thx for the fast answer. Happy holidays.

1 Like