GUIStyle.wordWrapvar wordWrap : booleanDescriptionWord wrap the text? This will cause any text contrained to be wordwrapped to fit within the width of a control.
JavaScripts
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void OnGUI() { if (GUI.skin.customStyles.Length > 0) GUI.skin.customStyles[0].wordWrap = true; } } import UnityEngine
import System.Collections class example(MonoBehaviour): def OnGUI(): if GUI.skin.customStyles.Length > 0: GUI.skin.customStyles[0].wordWrap = true |
