Select TextMesh Pro InputField

Is there no way to get Unity to select a TextMesh Pro Inputfield when a form opens so it has the focus so the user does not have to tap/click the field first to then be able to enter text?

I’ve tried all manner of approaches my last being:

 EventSystem.current.SetSelectedGameObject(userInput.gameObject);

userInput.OnPointerClick(null);

All to no avail.

1 Like

You are just missing activating the Input Field.

userInput.ActivateInputField();

No need for the click part.

4 Likes

THANK YOU!!! :slight_smile:

2 Likes