Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Move cursor to end of text

$
0
0
Hey there Stefan and team, question for you. We have the use case of programatically selecting a TMP_InputField component and setting the cursor at the end so somebody can start typing from the end.

Both Select() and ActivateInputField() successfully give focus to the input field but select all of the text. Setting caretPosition after that doesn't seem to do anything. Tried both the MoveTextEnd() and MoveToEndOfLine() methods with no success either.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>