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.horizontalSlider 水平滑动条
var horizontalSlider : GUIStyle
Description描述
Style used by default for the background part of GUI.HorizontalSlider controls.
用于GUI.HorizontalSlider控件背景部分的默认样式。
The padding property is used to determine the size of the area the thumb can be dragged within.
Padding属性是用来确定滑块可拖动区域的大小。
还没有添加代码
// Modifies only the horizontal slider style of the current GUISkin
//修改当前GUISkin的水平滑动条的样式
var hSliderValue : float = 0.0;
var style : GUIStyle;
function OnGUI () {
GUI.skin.horizontalSlider = style;
hSliderValue = GUILayout.HorizontalSlider (hSliderValue, 0.0, 10.0);
}
最后修改:2011年1月25日 Tuesday 16:30