How to set the inputfield to read only?
Set the InputField to be read only. The beginning point of the selection. The color of the highlight to show which characters are selected. The end point of the selection. Should the mobile keyboard input be hidden. The current value of the input field. The Text component that is going to be used to render the text to screen.
How to add a character to the input field?
Append a character to the input field. Clamp a value (by reference) between 0 and the current text length. The character that is under the mouse. Process the Event and perform the appropriate action for that key. See MonoBehaviour.OnDisable.
What do you need to know about inputfield in Unity?
Specifies the type of the input text content. Should a custom caret color be used or should the textComponent.color be used. The type of input expected. See InputField.InputType. Does the InputField currently have focus and is able to process events. They type of mobile keyboard that will be used.
Is the inputfield currently able to process events?
Does the InputField currently have focus and is able to process events. They type of mobile keyboard that will be used. The LineType used by the InputField. If the input field supports multiple lines. The Unity Event to call when editing has ended.
What do you need to know about the inputfield?
The blinking rate of the input caret, defined as the number of times the blink cycle occurs per second. The custom caret color used if customCaretColor is set. Current InputField caret position (also selection tail). The width of the caret in pixels.
What to do if the inputfield is canceled?
If the InputField was canceled and will revert back to the original text upon DeactivateInputField. Function to activate the InputField to begin processing Events. Function to deactivate the InputField to stop the processing of Events and send OnSubmit if not canceled. Force the label to update immediatly.