ScriptReference/EditorGUILayout.TextArea #259
Replies: 1 comment
-
|
At least in 2018.2, you cannot normally access the TextEditor (to control keyboard cursor / caret position or selection) on EditorGUILayout.TextArea... unless you use reflection! // see https://answers.unity.com/questions/411022/texteditor-in-editor-gui.html?childToView=1358721#answer-1358721
TextEditor tEditor = typeof(EditorGUI).GetField("activeEditor", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) as TextEditor; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/EditorGUILayout.TextArea
https://docs.unity3d.com/ScriptReference/EditorGUILayout.TextArea.html
Beta Was this translation helpful? Give feedback.
All reactions