[SOLVED] Change The Font Size Of A TextButton

Hello! I would love if there was a way to change the font size of a text button through events.



As you can see, when I change the text from Example Answe to Example Answer, it bugs out the text because the font size is too big. I would love to be able to change the size with an event, since you can do this for text labels already.

Thanks!

Edit: I edited the extension and it only took about 5 minutes to add a changing font size feature!

Open the extension in the editor and change the size inside the custom object. You can even create an action to set it with events and a condition/expression to read the value.

2 Likes

@Digi-Device_File YOU ARE A LIFESAVER! That only took 5 minutes and now it works exactly as I wanted it to, THANKS SO MUCH! :heart:

2 Likes

Glad to be helpful, editing extensions is how I learnt to make them.

1 Like

Note that when the extension will update, you’ll lose your changes.
Instead, you can change the font size by editing the variant which is not lost when updating the extension.

Also, you probably changed some setting on the label because using the variant straight from the asset store the lines don’t merge like on your screenshot:

1 Like

or they can copy the extension with a diferent name, save the json in their local storage and forget about any changes the original creator decides to make, cause now it will be a new extension.

In this case, they won’t get any fixes or features which may be an issue.
Whereas, creating a new variant with a different font size is easy.

1 Like