Hi I am trying to create a vertically scrolling text area help section for android. I am using the GUILayout.BeginScrollView and a Label for text, but the problem is, I only get horizontal scrolling. Is there a way I can force the text to actually break in lines nicely, so the user can scroll it vertically, and it would adapt to different scren sizes? Here is the code:
GUILayout.BeginArea (Rect(50, 50, Screen.width-100, Screen.height-50));
scrollPosition = GUILayout.BeginScrollView (scrollPosition, GUILayout.Width (Screen.width-100), GUILayout.Height (Screen.height-100));
GUILayout.Label(rulesText, smallText);
GUILayout.EndScrollView ();
GUILayout.EndArea();