GUISkin
- box
- button
- customStyles
- FindStyle
- font
- GetStyle
- horizontalScrollbarLeftButton
- horizontalScrollbarRightButton
- horizontalScrollbarThumb
- horizontalScrollbar
- horizontalSliderThumb
- horizontalSlider
- label
- scrollView
- settings
- textArea
- textField
- toggle
- verticalScrollbarDownButton
- verticalScrollbarThumb
- verticalScrollbarUpButton
- verticalScrollbar
- verticalSliderThumb
- verticalSlider
- window
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);
}
最后修改:2011年1月25日 Tuesday 16:01