- Home /
Question by
JayPM · Feb 01, 2019 at 01:16 PM ·
custom editorscrollviewtextarea
Scrollable textarea in CustomEditor brakes scroll event from the inspektor
Hi, I made a custom editor script and added a scrollable textarea in it.
scrollPos = EditorGUILayout.BeginScrollView(scrollPos, false, true, GUILayout.Height(100));
textProp.stringValue = EditorGUILayout.TextArea(textProp.stringValue, GUILayout.ExpandHeight(true));
EditorGUILayout.EndScrollView();
My problem is that I can no longer scroll over all scripts in the inspector, because the scroll event from the text area prevents the scrolling from the inspector.
How can I change the scroll behaviour of the scrollview so that it is only active when I clicked in the textarea field? Btw. this is the normal behaviour of a textarea created by a simple script.
Comment
Your answer
Follow this Question
Related Questions
Unity Scrolling Textbox 2 Answers
SelectableLabel or TextArea in Scrollview 2 Answers
Dictionary becomes null unexpectedly when using a custom inspector 2 Answers
CustomEditor Not Working or Visible 2 Answers