- Home /
EditorGUILayout.TextArea text goes out of bounds
I have the following code in an EditorWindow:
text = EditorGUILayout.TextArea(text);
When I press return to get a new line, the 1st line moves up and out of the box, and the box expands down one line. The text remains offset while adding new lines, but entering text or moving the arrow keys moves the text back to the correct location. See the included image for an example:
The same behaviour occurs with GUILayout.TextArea in the editor. I think this is a bug in Unity, but I would like to know if anyone else has encountered it and if there are any workarounds.
Currently using Unity 4.5.0
I'm also seeing this behavior. For me it only seems to happen if I'm adding a line to the very end of the text area. If I hit enter anywhere in the middle, it seems to work fine, with no out of bounds behavior.
Your answer
Follow this Question
Related Questions
why I Cant Add Multiple Objects to the "Object Field" in Editor Window? 3 Answers
Create a custom editor window with repeating subsection (mockup included) 0 Answers
How to combine two buttons in one. Editor window 2 Answers
Custom Editor - Is there any way to detect whether the user is in Prefab editing mode? 1 Answer