InputField with virtual keyboard

Hi I have an InputField with a virtual keyboard (made up of uGUI Buttons).

However, when I click on a keyboard button, the InputField loses focus, as it goes to the button (as you might expect). The negative result of this is that the caret is no longer shown on the input field.

Since RC1, the behaviour is even worse, as every time I click on the input-field again, the caret goes to the beginning of the input field (although I still can’t see it). Is there a way to manually set the caret position to the end?

Also How do I stop the caret from disappearing? I tried using EventSystem.SetSelectGameObject() but it doesn’t give the caret back.

Thanks.

You could try using a Text field instead of the InputField and manage the cursor yourself.

InputField.MoveTextEnd(false);

maybe

1 Like