3

i am using unity canvas to design a menue but when the keyboard appears the screen does not move up is there a way to move the screen up when the keyboard appears The screen i have without the keyboard

The screen i have with android keyboard

Is there a way around it where i can move the whole panel up when i click on input field

Ahmad Iftikhar
  • 33
  • 1
  • 11

1 Answers1

1

Your Unity canvas is probably overlapping your menu, the canvas is considering it as "displayed" but as a matter of fact it is not. What you need is a way tell Unity that your area is currently smaller, and make the remaining part scrollable. I strongly suggest you to take a look at THIS scripting tutorial about ScrollRect in Unity, as well as the documentation about Screen TouchScreenKeyboard classes. I am not familiar with how Unity works with Android, but you may have to calculate your current visible space by yourself. This link can help you to start getting the proper sizes.

FreeFly
  • 143
  • 1
  • 7
  • i found [This] (http://stackoverflow.com/questions/35072522/how-to-resize-view-when-touchscreen-keyboard-is-visible-on-android-with-unity). but it didn't work – Ahmad Iftikhar Dec 02 '16 at 08:10