How can I get the caret position of an EditorGUI.TestArea?
I tried this but GUIUtility.keyboardControl returns 0.
do you have the text field in focus? keyboardControl returns the id of the object thats currently in focus so if nothing is in focus it’d return 0. at which point GetStateObject will create a new state for id 0. and keep that state across future frames
yeah same here it works with GUILayout but not works with EditorGUILayout