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.settings 设置选项
var settings : GUISettings
Description描述
Generic settings for how controls should behave with this skin.
这个皮肤有关控件行为的一般设置。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public string str = "This is a string with\ntwo lines of text";
void OnGUI() {
GUI.skin.settings.selectionColor = Color.cyan;
str = GUILayout.TextArea(str);
}
}
// Sets the selection color to cyan
//设置选择颜色为青色
var str : String = "This is a string with\ntwo lines of text";
function OnGUI() {
GUI.skin.settings.selectionColor = Color.cyan;
str = GUILayout.TextArea(str);
}
最后修改:2011年1月25日 Tuesday 17:47