How to change caret position inside Input field using mouse position
Hello everyone, i am developing a renaming functionality, the thing is i am finding myself kind of limited regarding one request, and that is the ability to after putting a string inside an input field ("abcdefg|") if user clicks in between letter like a text editor, the caret needs to go to that position ("ab|cdefg"), i know that i can retrieve the caret position but not like in a world position so the approach i was thinking that somehow compare mouse poisition with caret position is not ok
How is the best way to approach this? or maybe some config i need to do to Text mesh Pro Input field?
I am using Unity 2020.3.30f1
Regards and Thank you
Comment