GUISkin.horizontalScrollbarRightButton 水平滚动条右按钮

var horizontalScrollbarRightButton : GUIStyle

Description描述

Style used by default for the right 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.horizontalScrollbarRightButton = style;
		hSbarValue = GUILayout.HorizontalScrollbar(hSbarValue, 1.0F, 0.0F, 10.0F);
	}
}
// Modifies only the horizontal scrollbar
// right button of the current GUISkin
//修改当前GUISkin的水平滚动条右按钮的样式

var hSbarValue : float;
var style : GUIStyle;

function OnGUI () {
	GUI.skin.horizontalScrollbarRightButton = style;
	hSbarValue = GUILayout.HorizontalScrollbar (hSbarValue, 1.0, 0.0, 10.0);
}
Page last updated: 2011-1-25