- Home /
How to make buttons with 2 lines of text
I am creating a game that will require buttons with two lines of text. For example, the first line in large type will be 'GET CLUE' then directly under it I need a line in a smaller font size that says '3 clues left'. The text will all need to be dynamic.
What is the best way to create about 5 of these types of buttons? Should I be using the GUI buttons for this and if so, how can I make two lines of text in different font sizes?
Answer by sayyedasara · Apr 29, 2021 at 03:17 PM
I'm 9 years late :p but will answer in case anyone needs it:
A button has by default one Text child object, you can simply add another Text child object, make the first Text's alignment up and the second Text's alignment down.
They will appear perfectly above each other, and you are then free to format each text independently.
If you wanted 3 lines you can do the same: add a third Text child object and their alignments would be Up, Middle, and Down.