Yes, you’re perfectly right, of course. I don’t know what I was thinking about, because I never even hoped that the UI would magically rotate and look good. I was planning to rearrange it myself all the time. My big misunderstanding was that I thought I had to enable both portrait and landscape in the build.settings file to be able to…
This listener worked just fine:
Runtime:addEventListener(“orientation”, onOrientationChange)
So I’m using it and I’m redrawing the UI as you say. This turned out to be easy peasy. I just had to do some planning. I divided the screen into grids which contains clusters of UI parts in a way that fits the display both ways.Then I created one display group per such UI cluster and when an orientation change is detected I just move/rotate these display groups (5 of them) and everything within falls nicely into place.
Thanks for all help! I feel that I’m getting a bit less helpless each day