rect_pivot_offset not working?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JorensM

I want to create a button that shrinks smaller when it is pressed. Currently when I press the button, it shrinks, but it resizes around the top left corner instead of the center. I tried changing the rect_pivot_offset value but it didn’t affect anything.

:bust_in_silhouette: Reply From: JorensM


I solved this by making the button a child of a node that has transform properties, and then changed its’ scale upon click

This is a good idea. Also, you can click the check mark on your answer to mark it as the answer (you don’t have to put the word “Resolved” in there).

Ertain | 2021-09-12 04:44