2D Toolkit Forum
2D Toolkit => Support => Topic started by: kujo on November 11, 2013, 05:53:33 pm
-
Hi,
I've had a search around, but can't find anything on this subject.
I've set up a UI in which text input is required. Everything works great except I need to "shift" the UI up so that the user can see what they're typing in the text box, as the keyboard covers that part of the screen.
Anyone any advice on how to do this? I know how to do it on Android and iOS, but don't really know where to start with it in Unity.
Thanks in advanced!
-
You'll have to do it yourself. Attach all your UI to a game object, and then move this game object up or down when you need to shift it.
-
Thats cool - Is there an event I can listen to when the text box gets or when the keyboard will appear?
-
No, but you can poll TouchScreenKeyboard.visible.
-
Nice one - thanks very much