0 votes

I'm trying to add an animation to my buttons, which makes the button bigger when the mouse is hovering over the button. I haven't seen any built-in functionality in the button node to do that so I'm using an AnimationPlayer and the mouseentered/mouseexited signals to achieve this effect.
My problem is, when I add the button to a GridContainer it always scales from the top left corner, even though I have set the pivot offset and the position correctly in the center. When I try this with the button only and no GridContainer it works fine. How do I fix this?

Godot version v3.5
in Engine by (12 points)
edited by

Please log in or register to answer this question.

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.