Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: andrew99 on October 16, 2014, 04:02:36 AM
-
Hi
The soft keyboard orientation still behaves as if autorotation is enabled.
In Unity's Player Settings I've set the orientation to fixed (Landscape Left), and disabled the Accelerometer.
But even though the game's orientation is locked properly, the soft keyboard still rotates.
I haven't had any luck in finding any documentation which address this specific issue (perhaps my googling just sucks :P).
Apparently orientation lock issue is a thing in my QA side, so I'd really appreciate the help on how to fix this issue..
FYI, I'm using
- NGUI 3.5.1 (can't upgrade due to compatibility issues with some custom codes, but I've confirmed that this issue still happens in NGUI 3.7.4)
- Unity 4.5.4
- Visual Studio 2012 for Windows Phone Update 2
I've attached a screenshot of what the issue looks like on NGUI demo scene : Chat Window.
Hope someone can help with this. Thanks!
-
Anything related to where keyboard shows up is 100% Unity, so I can't suggest much.
-
Hi Aren,
Thanks for the fast reply.
So this is an issue with Unity?
Can't be helped then, I'll try asking in the Unity forum.
Thanks again!
-
Well, you can have a look inside the UIInput class to see if maybe I missed something when opening up the touch screen keyboard around line 642.
-
@andrew99
Did You managed to fix this? (Or have any workaround?) I also have this problem and I also didnt found any solution for that.
-
Hi Marcin,
Apparently to lock orientations in Windows Phone (in this case the OS Keyboard) we have to set the orientation both in Unity's Player Settings, and also in the MainPage.xaml file generated in the Visual Studio Project. Inside the .xaml file there are "Orientation" and "SupportedOrientations" field which you can edit.
Hope this helps!
-
Great! It worked. Thank You very much andrew99. :)