Anchoring GUI Score

Heyo!

So, Im trying to figure out how to set up the score GUI. When I destroy an enemy object, it will increment as I please. But when the numbers get bigger, it shifts the “Score” label to the left. How do I make shift only the score count to the right and not affect the label?

1 Answer

1

guiText.alignment = TextAlignment.Left;

Unity Docs : guiText.alignment

Alternatively, this can also be done in a GUI skin.

Thanks ill test this when i can.

–