- Home /
How to change iOS keyboard orientation at runtime?
Hi,
I'm trying to change keyboard orientation by setting Screen.orientation, but it's not working:
The default orientation is Landscape Left. Before calling TouchScreenKeyboard.Open, I set Screen.orientation to ScreenOrientation.Portrait. The returned TouchScreenKeyboard object is not null, its "active" is true, "done" is false, "visible" is true, but width and height of TouchScreenKeyboard.area is 0, and keyboard isn't displayed.(no matter the real device orientation)
Is it a bug? Any workarounds?
It's built with Unity 2017.1.1f1 and XCode 9, running on iOS 11.
Your answer
![](https://koobas.hobune.stream/wayback/20220612140927im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
iOS Numbers and Decimal keyboard 2 Answers
Detect Orientation change at runtime? 0 Answers
Detect When GUI.Text Field gets focus. 0 Answers
Screen rotation became black screen 0 Answers
Using the IOS Keyboard 2 Answers