Version: 2017.1
public GUIStyle textArea ;

描述

GUI.TextArea 控件默认使用的样式。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GUIStyle style; private string str = "A string...\nWith two lines."; void OnGUI() { GUI.skin.textArea = style; str = GUILayout.TextArea(str); } }