- Home /
How to make a GUI.Label multi line
How to make a GUI.Label multi line? set guiskin?
GUI.skin = scskin;
scrollPosition = new Vector2(0, downsave);
GUILayout.BeginArea(new Rect(ww, 60f, Screen.width, Screen.height - 70), GUI.skin.window);
scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, true);
GUILayout.BeginVertical(GUI.skin.box);
GUI.skin = myskin;
for (int i = 0; i < UserID.Count; i++)
{
GUIContent gi = new GUIContent((string)UserName[i], (Texture2D)icon[i]);
GUILayout.Box(gi);
GUILayout.Label((string)Comment[i],GUI.skin.textArea);
}
GUILayout.EndVertical();
GUILayout.EndScrollView();
GUILayout.EndArea();
Comment
Your answer
Follow this Question
Related Questions
Unity2D Android GUI.Label position diffrent in Unity and in Android 0 Answers
GUILabel wider than Rect width 1 Answer
Random Array with GUILabel 0 Answers
How do I create a variable from a... GUIlabel? 1 Answer
How to clear textures on screen? 1 Answer