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.GetStyle 获取样式
function GetStyle (styleName : string) : GUIStyle
Description描述
Get a named GUIStyle.
获取一个命名的GUIStyle。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
private bool b;
void OnGUI() {
b = GUILayout.Toggle(b, "A toggle button", GUI.skin.GetStyle("Button"));
}
}
private var b : boolean;
function OnGUI() {
b = GUILayout.Toggle(b, "A toggle button", GUI.skin.GetStyle("Button"));
}
最后修改:2011年1月25日 Tuesday 17:50