- Home /
How can I move Text and Image component in unison inside of Canvas
I have a Text component that represents the score in my game. The text is 'right justified' so that it moves inwards to the screen as the score increases from single digits to double digits and beyond. I also have an Image component that I want to move in unison with the Text component as it changes size. I have tried different parenting arrangements but I can't achieve the desired effect. Any clues as to how to do this?
Some pics of the problem:
Comment
$$anonymous$$ake the text Lefty so text grows to right and it won't overrun your gold icon.
Or just add zeros by using something like score.ToString("D4");