Godot 4.3: All the buttons in my project stopped working

Godot Version

4.3

Question

I was going to show my game to someone, I runned it and the play button stopped working, I tried disconnecting the "pressed()" function and reconnecting it, deleting the button and making a new one, and nothing worked, Now when I connect a function to the script, " -> void" is added, something that didn't happened to me before, I checked the other scenes and all the buttons in my project stopped working

1 Like

I take it this is after an upgrade? I think 4.3 makes types hints a default, don’t worry about -> void: that’s the return type of the function (nothing).

Sounds like you may have quite an undertaking, do you get any errors?

You can read more about type hints here

Without see the code/images will be hard to help

here´s the code:

extends Node2D

func _ready() -> void:
	pass 


func _process(delta: float) -> void:
	pass


func _on_exit_pressed() -> void:
	get_tree().quit()


func _on_tree_exited() -> void:
	Music.play()


func _on_texture_button_pressed() -> void:
	get_tree().change_scene_to_file("res://main.tscn")

Thank you so much, i’ll read about it, i don´t get any errors, that’s why i am confused

After looking at this post, I checked out the way my level was set up, and something had been placed over my whole scene, a node that had wandered down. So did you possibly also have something in your setup that might be covering your buttons? It could be something you don’t immediately notice, in my case it was a canvasmodulate.

I seem to have the same problem. I have a bunch of buttons for my debug menu, and after switching to 4.3, they no longer respond to being clicked in any way. I can tweak their appearance and parameters and have the buttons adapt to those changes in debug, but they no longer respond to clicking…