0

I am working on a mobile app for IOS and Android in Unity, it needs to swap between screen orientations, landscape to portrait, with input text in both orientations. The transition-animations in iOS and Android are awkward to get around without looking ugly, so I would rather try to keep the device in landscape orientation, rotate the portrait sections of the app by 90 degrees, and tell the game to open the portrait-mode keyboard while the device is still in landscape orientation. Input text is required in both portrait and landscape scenes, so I need to be able to choose which orientation the keyboard popup is in.

I have only worked in mobile development through unity, so I do not know if this is this possible with the operating system's specific development resources like Xcode. To my knowledge you cannot disable android's screen-reorientating animation so this may be the only way to get around it. Any pointers for scripting in Android or iOS would be appreciated as well.

3
  • I doubt you can force overwrite the device orientation but only partially / selectively Commented Feb 13, 2025 at 18:13
  • I strongly doubt iOS would ever let you do this. Android possibly, but also doubtful. If this is absolutely necessary for your app, you might consider creating your own keyboard. But beware! the built-in keyboards are heavily user tested and extremely bug free. I would also ask, why spend time on this when you could be making your app better? Don't reinvent the wheel unless you absolutely need to :D Commented Feb 14, 2025 at 3:50
  • Please provide enough code so others can better understand or reproduce the problem. Commented Feb 15, 2025 at 0:05

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.