Question by
a1-creator · Dec 21, 2021 at 08:21 PM ·
uimobilemobile devicesorientationphone
Rotate ONLY UI on mobile orientation change
I've been looking around for answers on this but all I have found is this one 6 year old post, asking my exact question, unanswered.
I am making a game where the world can be viewed from any orientation and should therefore not rotate when you change your phone orientation, but I would like the UI to act like it does with "Screen.orientation = Automatic" so that it fits the orientation of the phone. How can I disable world rotation on orientation change OR enable UI rotation if i set orientation to default to portrait? This link is the outdated, unanswered post I found. It has nice descriptive images, depicting exactly my own question. https://answers.unity.com/questions/995242/only-rotate-ui-hud-on-orientation-change.html
Comment