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.horizontalScrollbarLeftButton 水平滚动条左按钮
var horizontalScrollbarLeftButton : GUIStyle
Description描述
Style used by default for the left button on GUI.HorizontalScrollbar controls.
用于GUI.HorizontalScrollbar控件左按钮的默认样式。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public float hSbarValue;
public GUIStyle style;
void OnGUI() {
GUI.skin.horizontalScrollbarLeftButton = style;
hSbarValue = GUILayout.HorizontalScrollbar(hSbarValue, 1.0F, 0.0F, 10.0F);
}
}
// Modifies only the horizontal scrollbar
// left button of the current GUISkin
//修改当前GUISkin的水平滚动条左按钮的样式
var hSbarValue : float;
var style : GUIStyle;
function OnGUI () {
GUI.skin.horizontalScrollbarLeftButton = style;
hSbarValue = GUILayout.HorizontalScrollbar (hSbarValue, 1.0, 0.0, 10.0);
}
最后修改:2011年1月25日 Tuesday 16:54