String text alignment

hi
guys
how do i alignment one to right and another to left side.

highscoreFields[i].text += highscoreList[i].username + "  " + highscoreList[i].score;

now its look like this


but i want it like this

thanks.

You use two separate texts (one left-aligned, one right-aligned).

They’d have to be two separate text objects for you to align them differently.

Edit: Joe the ninja.

1 Like

Two text objects is the way to go, imho. You could also use one field, set a maximum length, and then pad the middle with spaces…but that is a lot of work.

thanks you all.