Reply To: What is the best way to scroll form when keyboard opens?

Home Forums Books Unity 3D UI Essentials What is the best way to scroll form when keyboard opens? Reply To: What is the best way to scroll form when keyboard opens?

#7383

Hi Karl

Sadly you cannot, the UI is just that, a UI framework.  It doesn’t have any form style capabilities.

In order to scroll the screen up from the keyboard so you can see your entry fields you would have to either:

  • Move the UI elements (preferably grouped under a single empty GO) up the screen to allow for the keyboard.
  • Use a Camera variant of the canvases (SS – Camera or Worldspace) and move the camera down to allow for the keyboard overlay

In either case you would also have to check for the presence of a virtual keyboard so that it wouldn’t affect deployments that have a physical keyboard, such as desktops and web apps.

 

I think this would make for a great asset for the UI store 😀

Simon (Darkside) Jackson
@SimonDarksideJ