Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: andrew99 on October 16, 2014, 04:02:36 AM

Title: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post 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!
Title: Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post by: ArenMook on October 16, 2014, 06:55:44 AM
Anything related to where keyboard shows up is 100% Unity, so I can't suggest much.
Title: Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post by: andrew99 on October 16, 2014, 07:30:54 AM
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!
Title: Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post by: ArenMook on October 17, 2014, 04:30:24 AM
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.
Title: Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post by: Marcin on June 26, 2015, 04:39:07 AM
@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.
Title: Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post by: andrew99 on June 26, 2015, 06:19:35 AM
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!
Title: Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
Post by: Marcin on June 26, 2015, 06:54:34 AM
Great! It worked. Thank You very much andrew99. :)