Text adaptation

As shown in the figure, the length of my number changes dynamically. I need to place the unit next to the number, because the color and size of the number and the unit are different, and they are separated. How to place units next to text


ping @carolhmj

You could use StackPanel and resizeToFit Simple GUI in fullscreen mode | Babylon.js Playground (babylonjs.com) :slight_smile:

1 Like

OK, StackPanel is a good choice

1 Like