Display selected Input field when mobile keyboard is open

Hello,

I was looking for a way to fix an issue where the mobile keyboard will cover the selected input field. I would like the selected input field to be pushed up when the keyboard is opened and then put back to its previous position when the user closes the keyboard.

I am using unity 5.4.1 and using the new UI input fields

Nevermind, got it working

Can you explain how you got it working?