Responsive GUI

New to Defold. Assuming I want to build for multiple types of mobile devices, how does one manage different screen sizes? I noticed the default mobile starter template has a screen size set specifically to 640x1136.

Hi there and welcome!

The GUi system will automatically adjust itself to the size of the screen. You can anchor GUI elements, create hieararchies and set pivot points. This system is quite flexible and should cover most of your needs when it comes to handling various screen sizes for your gui.

The game object world defaults to stretch to always cover the entire screen. This is usually not desirable, and you can in those cases either adaptively zoom or set a fixed zoom.

1 Like