Text adaptation

num
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

https://playground.babylonjs.com/#XCPP9Y#14191

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