How to adapt same app to different screen resolutions/export targets?

Godot Version

4.5

Question

I’m developing an app and would like to have it present differently for different devices and different screen resolutions.

Now, I don’t simply want it to stretch a bit; I want to have a completely different layout depending on if it’s being shown on a mobile screen (tall and narrow) verses a tablet (wide). In one case the user controls should be on the bottom and in the other on the right.

Godot seems to lock you in to one screen size and I don’t see any way to write for multiple configurations. Do I need to create a new project for each presentation style? How would I share common code between projects?

You can use feature tags to customize your export presets.

If you need more control about how the exporting happens then you can write a plugin with an EditorExportPlugin

1 Like