Hi there I have a problem with TouchScreenKeyboard.
For the game we are making, the orientation needs to be set to Landscape Left in default but on our UI, we wish to have orientation support. We have custom scripts for dealing with mobile device’s orientation. However by setting the game to Landscape Left in the build settings, TouchScreenKeyboard can’t autorotate according to the phone’s orientation and manually setting autorotateTo* properties don’t work either.
What I use to do to detect the device orientation is a simple test on the screen width and heigh during the update.
From here if it detects a change, it set all gui scripts need.
Finally my app is set for all possible orientation screen in the build settings and the keyboard on ios works a charm.
We have code to detect orientation change in Update too but since ours is an AR app we had to set the build setting to Landscape Left only. This is why iOS keyboard won’t autorotate. Basically I’m trying to look for a way to manually rotate the iOS keyboard at run time but it doesn’t look like that’s possible.
Deprecated? But it’s still updated in the docs isn’t it? Screen class doesn’t help me when I only want to control the iOS keyboard though.
you cant control only keyboard rotation
Though, judging from your desc, you can get away with hacking views hierarchy (objc side)
also, if you are using unity gui, you can get away with doing stuff a bit differently: use RT, and rotate camera (i hope that makes sense ;-))