I’m trying to use GUIStyle.GetCursorStringIndex but in order to do that I need to pass the mouse position, Event.mousePosition works but Event.button doesn’t so I can’t tell when a user has clicked in order to then work out where in the string they clicked.
How do you use GetCursorStringIndex?
Solved. Check for the mouse event before drawing the text area, doh! simple