0 votes

I'm working in a very small resolution game, which I think is contributing to the issue. The button itself is 16x16 pixels in the editor. I want to have a tooltip show up when it's hovering over the button, but it's super inconsistent. There are pretty big gaps all over the button that don't count as being hovered. Is there any way to fix this, other than just upping the resolution? Thanks.

Edit: The gaps aren't just for the hover check. There are gaps in the button itself for some reason; I can only press on it in certain places for some reason.

Godot version 3.4.2
in Engine by (105 points)
edited by

1 Answer

0 votes

Has this button other nodes inside or close (maybe text)? If so you need to pay attention to the "Mouse Filter" at the inspector because it determines how the mouse will be consumed by the nodes. Maybe the text (or other node) is consuming your mouse input causing this issue. You can change the Mouse filter to Ignore if you dont want a node (like text or icon) to interact with your mouse.

by (78 points)
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 Frequently asked questions and 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 [email protected] with your username.