GUISkin.textArea 文本区域

var textArea : GUIStyle

Description描述

Style used by default for GUI.TextArea controls.

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

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public GUIStyle style;

	private string str = "A string...\nWith two lines.";

	void OnGUI() {

		GUI.skin.textArea = style;

		str = GUILayout.TextArea(str);

	}

}
// Modifies only the textArea style of the current GUISkin

//修改当前GUISkin的textArea样式



var style : GUIStyle;

private var str : String = "A string...\nWith two lines.";



function OnGUI() {

	GUI.skin.textArea = style;

	str = GUILayout.TextArea(str);

}
Page last updated: 2011-1-25