0 votes

Weird behavior with Texture Buttons.
I have texture buttons with Normal and Pressed textures and is set to toggle.
I then connected their button down and button up signals to print accordingly for testing.
It seems that the button textures itself know when you release (button up) away from the button area, texture remains as normal instead of pressed...but the signals does not acknowledge it, button up signal emits even if I release away from button.
Bug? or am I misunderstanding something? Godot 3.0.6

in Engine by (41 points)

1 Answer

+1 vote
Best answer

It seems to behave that way also for Button, so maybe it's intented. You could use pressed instead, that one definitely isn't firing when you release the mouse outside of the button. Despite the name, pressed triggers on release by default, and can be configured with the action_mode property.

by (27,897 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.