Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: SmartCarrion on March 26, 2015, 09:27:24 PM

Title: Readymade scripts for moving the UI with OnScreenKeyboard
Post by: SmartCarrion on March 26, 2015, 09:27:24 PM
I've been searching around for code and am amazed i can't find a ready made solution for this...

Does anyone have good examples of how to adjust NGUI when the onscreenkeyboard is being popped up on a mobile device?  Right now it covers up the field they are entering, which makes it tough to use.

Seems like i need TouchScreenKeyboard.area and NGUI's viewport stuff, but i am finding the documentation missing or confusing.

Thanks!
Title: Re: Readymade scripts for moving the UI with OnScreenKeyboard
Post by: ArenMook on March 27, 2015, 11:01:40 PM
You'd need to adjust the camera's view rect I'm guessing. As I understand it, some Android versions do this automatically, while others don't, and there isn't much consistency in this particular behaviour.