Clickable Area (UISprite, BoxCollider, UIInput)
- Text (UILabel)
I have an input field controlled by a custom made keyboard. How do I focus my input field without selecting the text in it? I just want to show the carot at the current position in the text, without selecting the text itself.If you wanted to set the selection yourself, you will need to expose mSelectionStart / mSelectionEnd and call UpdateLabel() after changing them.
If you wanted to set the selection yourself, you will need to expose mSelectionStart / mSelectionEnd and call UpdateLabel() after changing them.
If the label content is set to "clamp" then the input field will be single-line. If you want it to be multi-line, use "shrink to fit".
- FIX: UIInput will now load the saved value properly even if the "starting value" is not empty.
Hi ArenMook,
Question about the a textfield. I have a textfield setup with multi-line enabled. I've set the TouchScreenKeyboard.hideInput to true. But when inputting text in te textfield it still shows the text input above the keyboard. When I set the max lines to 1 it's not showing the text input above the keyboard but i can't input multi-line texts.
Any idea how to fix this?
"Hide input" option is specified on the UIInput itself. You don't need to write code to hide it.