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

Hello everyone!
Today I want make some eye-candy things.
But... TextureButton is not Sprite2D
Sprite2D can be setted offset in the center for example, but I cannot do this for TextureButton, or just not understand how to do this.
I need TextureButton offset in center for scalling.
So, how do this?
If it impossible - can you give guide for button on the Sprite2D base?

Godot version 4.0
in Engine by (72 points)
edited by

1 Answer

0 votes
Best answer

In the inspector for your TextureButton, you can set the Transform | Pivot Offset values so they are each 1/2 of the button's width and height. That'll allow it to scale from the center...

by (22,704 points)
selected by

Thank you again!

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.