GUI incorrect aspect ratio when changing viewport

Hi
How to keep the aspect ratio when the viewport size is not 1
Thank you
Simple GUI in fullscreen mode | Babylon.js Playground (babylonjs.com)

Is there another way besides using the text.scale parameter?

The GUI is a simple texture not related to a camera, so I’m not sure how to do it on a global basis, that would work for any control added to the GUI…

cc @carolhmj for her inputs, but please be patient as she is currently on vacation.

1 Like

You can change the x scale of the GUI’s root container to be based on the viewport: Simple GUI in fullscreen mode | Babylon.js Playground (babylonjs.com)

1 Like

Thank you very much, I am doing it this way now. There are no adaptive parameters here, right?

Nope, that doesn’t use the adaptive mode.