Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: frojona on May 11, 2012, 08:43:25 AM
-
Hello and thank you for a great plugin. It has been a great recourse when developing my last game.
I'm developing a game for the iPhone and I'm looking for an easy way for the user to input an integer. My first choice would be to use an UIInput but the user can access the entire keyboard and I would like to make it easier for my user. Is there a way in which I can control what iPhone keyboard is displayed? It would be great to use the numpad or a scolling list of integers similar to the one you get when you adjust the clock on the phone.
Thank you again for NGUI ;)
Jon
-
Last I checked, UIInput just bring sup the full keyboard. But this is done from the Unity TouchScreenKeyboard class inside UIInput. You'd have to change UIInput to use a version of that class that opens the keyboard you want. The better way might be to subclass or just duplicate UIInput and make your own version.
David
-
Yup, that's pretty much it -- just modify UIInput or create a copy of it that has the keyboard type as the parameter. I haven't exposed this because I'll need to add logic to exclude certain characters on non-mobile side, and that's something I haven't had time for yet.