Yes, you can simply change the Content Type of the TMP_InputField. If you set it to “Custom” you have full control over the Keyboard Type.
Edit: just checked… seems like it is not implemented by default in TextMesh Pro, so I was wrong… sorry. Probably you can somehow force to open the alert keyboard anyway but I don’t know how without research.
Hi @Stephan_B , The text mesh pro input field is not behaving differently than the standard uGUI input field in this behalf.
The questioner wanted to change the appearance of the keyboard which is possible when calling TouchScreenKeyboard.Open() but not configurable in uGUI or TMP input field.
In particular he wanted to set the alert argument to true. see here for more details.
Working on iOS. I have two inputFields: username and password. I tap on the username inputField and change the keyboard type to alphanumeric. Without closing the inputField I select the password inputField and the keyboard is not set to default but it is still in alphanumeric. I can change it manually on the iPhone but I want to do something like: when inputField is in focus first reset the keyboardtype to default with C# code.
I added a new property which is “HideSoftKeyboard” which will prevent the soft keyboard from opening. This basically skips the TouchScreenKeyboard.Open().
So in theory, you should be able to use some of the callbacks to control the keyboard on your end.
P.S. I guess I could also prevent the Soft Keyboard from opening when the Content Type is set to Custom. Thoughts?