Tweening a buttons size while keeping it anchored in one place

I want to tween an effect for my ui when you click a button but when i tween the size of the frame the center doesnt stay where it was before the tween. Does anyone know how i can somehow anchor the ui so the center will stay in place and it still tweens its size a bit smaller and then back?

1 Like

It’s easy if you set the anchor point of the button to 0.5, 0.5 then you won’t need to do any math in your tween, you’ll just need to reposition the ui in the editor.

1 Like

Thanks, idk how i forgot about anchorpoint to be honest.