- Home /
Question by
g-augview · Sep 14, 2020 at 12:57 AM ·
uiinputfield
What is the difference between InputField.inputType and InputField.contentType?
The question is in the title.
Comment
Best Answer
Answer by Bunny83 · Sep 14, 2020 at 01:35 AM
Just check the documentation:
InputField --> inputType --> InputType
--> contentType --> ContentType
Besides the scripting reference there's also the manual on the InputField.
You get those two links directly by typing "Unity Input Field" into google.
So the inputType selects which mobile keyboard layout is used (Standard, AutoCorrect, Password) while the contentType mainly about input validation / filtering.
Note that when you set a contentType the inputType is automatically set. When you manually set an inputType the contentType is set to custom