Search Unity

Force InputField to stay Active

Discussion in 'Scripting' started by Simon75012, Dec 5, 2018.

  1. Simon75012

    Simon75012

    Joined:
    Sep 15, 2016
    Posts:
    79
    Hi,
    I'd doing a mobile app with some text Area and i show some "Shortcut".

    I created some button and when user click on the button i insert the shortcut into the textfield. However, because user click on a shortcut, the textfield is deactivated, i need to wait for the keyboard animation to be over and the Select the textfield again, which is not convenient at all.

    Is there a way to keep the inputfield focused and allow user to click somewhere on the screen? I will create a large button in the top of the screen to manually deactivate it.

    I'm using TextMeshPro InputField on Unity 2018.

    Thanks.