I have an image and a text for displaying the player score. They are both displayed through a canvas.
Currently, my textbox remains the same size independent of the score, so when the player gets a big score, it prints outside of the image.
I want keep my score inside the background image, and I also want to change the size of the image along with the number of digits in the score, like "10, 100, 1000, 10000" etc.
How can I adapt the size of my background image on the amount of digits in the current score?