i'm trying to move caret in textmeshpro inputfeild To A Certain Position In A String of 10 letters
but it is not working for some reason i've used the latest version of textmeshpro
I've logged the position and it is accurate but visually the cursor stays at the same place
can anyone help me on how to move caret in inputeild manually via script
public TMP_InputField MessageInputField;
void SomeFuntion(){
MessageInputField.caretPosition = MessageInputField.text - 5;
}
but it is not working for some reason i've used the latest version of textmeshpro
I've logged the position and it is accurate but visually the cursor stays at the same place
can anyone help me on how to move caret in inputeild manually via script
public TMP_InputField MessageInputField;
void SomeFuntion(){
MessageInputField.caretPosition = MessageInputField.text - 5;
}