GUISkin.verticalSliderThumb 垂直滑动条滑块

var verticalSliderThumb : GUIStyle

Description描述

Style used by default for the thumb that is dragged in GUI.VerticalSlider controls.

用于GUI.VerticalSlider控件可拖动的滑块的默认样式。

The padding property is used to determine the size of the thumb.

padding属性用来确定滑块的大小。

// Modifies only the vertical slider thumb style of the current GUISkin
//修改当前GUISkin的垂直滑动条滑块的样式

var vSliderValue : float = 0.0;
var style : GUIStyle;

function OnGUI () {
	GUI.skin.verticalSliderThumb = style;
	vSliderValue = GUILayout.VerticalSlider (vSliderValue, 10.0, 0.0);
}
最后修改:2011年1月25日 Tuesday 16:40

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。