This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I have a gridContainer ui object, with textureButtons as its children. I want the buttons to scale up when hovered, which works fine, but when they do so they move the other buttons that have not been scaled up. Is there any way to scale the buttons whilst keeping the positions of the other buttons the same?

an example of the issue

Godot version 4.0.1
in Engine by (15 points)
edited by

1 Answer

+1 vote
Best answer

I dont know how you did the hover effect but if you want the buttons centered after scaling up I think the easiest solution would be to give every button a control node parent and making the control nodes minimum size the scaled up size you want.

For example :

Godot scene example.

When I click the button it scales up and doesnt bother the other nodes.

by (600 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 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.