#problem with buttons
1 messages · Page 1 of 1 (latest)
Probably there is another ui node in front blocking/consuming your click
the z-index of the button is only relative to other children of it's parent, not everything
i just made an empty scene with a button and when trying to press it it wont register
does it show something on hover?
no
totally empty scene, running on it's own or in your game setup (hud, etc)?
also in remote tab?
maybe try to project -> reload project?
can you show the script linked to the button?
extends Button
var mode
var object
func _ready():
if mode == "items":
text = object + " x" + str(Global.inventory.get(object))
name = text
func _on_pressed() -> void:
print(name)
func _on_mouse_entered() -> void:
print("me tocaron")
thats all the code it has
no extends Button??
the buttons on the pause menu work perfecly but this one
its at the top
oh, you right.. my bad lol
is the pause menu still "active" with your "only a button" scene?
no
and no related errors/warning?
none
what if you remove the script?
very odd
no way i think i fixed it
how?
i hide all canvas layers
ha