How to change orentation and camera location with ui

Godot Version

4.3

Question

My entire game is split into 3 sections, and to make porting easier i was thinking i could just make the phone portrait and use buttons to move between them. would this be possible, or would it just break with different aspect ratios?

I would think both. The idea is great, having arrows and moving the camera. The arrows could be buttons that move the camera position.

In project settings, you can set resizable to false (there’s a ui for it, but you can set It in code if you want) and set the window size to be a specific amount. This will lock the window to a set size, so different aspect ratios won’t break it. The only problem would be the different widths of the ui. You might want to make them a consistent width if you are to try this method.

Thank you! Though i’ve already found a different solution. I’ll probably just save each section of the game as its own scene, and then have two separate “main” scenes that contain them for both versions. That way, i wont have to worry about each part being a different size, and it makes it easier to switch between them for mobile. Thanks anyway!