- Home /
Get newlines from TextArea
If I set up a TextArea with a fixed width and height and type some input text, the text will be wrapped automatically by the TextArea. Is there a way to get exactly these generated line breakes? The string I get from GUI.TextArea doesn't seem to contain any newline characters until I press 'Enter' manually.
That's how I checked the input string for newlines:
input = GUI.TextArea(rect, input);
Debug.Log("input: " + input.Replace(System.Environment.NewLine, "---"));
Thanks in advance!
Comment
Your answer
Follow this Question
Related Questions
GuiSkin textArea font size not working 1 Answer
Lock a textarea/textfield for editing 1 Answer
EditorGUILayout.TextArea text goes out of bounds 0 Answers
uGUI Text wrong chinese line break 2 Answers
Unity Scrolling Textbox 2 Answers