Making A TextButton Square

Hey there,

I am probably just dumb, but how can I make a TextButton perfectly square when using scale?

Thanks,

1 Like

If you click the TextButton it should take you to UI tab, on there you can re-size the button however you want to with the usual re-size tool

2 Likes

I know, but that is using offset, not scale.

Oh then I have no idea what you’re talking about, sorry

1 Like

Using Scale alone can cause them to stretch when resizing the window. Offset doesn’t do that. If you want the button to increase in size when the window gets wider, while maintaining a square shape, change the property SizeConstraint to RelativeXX. If you want it to scale with the window’s height instead, use RelativeYY.

1 Like

This is the answer.

Or, alternatively, you could script it but why would anyone want to do that? :sweat_smile:

1 Like

Just insert a UIAspectRatioConstraint into the button

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.