using unity GUI, if I wanna show multiline text, what should I do? it should be like GUI.textArea 's effect, but it can’t be edited just like label. But GUI.Label only can show one line text. Hope I won’t have to write code like "GUILayout.Label(“line1”);GUILayout.Label(“line2”);GUILayout.Label(“line3”);"GUILayout.Label(“line 4”);“GUILayout.Label(“line 5”);”
You must set the Word Wrap property to true in the GUIStyle you’re using.
Either create the style on-the-fly and set the wordrwap, or create a GUISkin and assign it.
You can use \r\n