GUISkin.verticalSliderThumb

Switch to Manual
public GUIStyle verticalSliderThumb ;

Description

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

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public float vSliderValue = 0.0F; public GUIStyle style; void OnGUI() { GUI.skin.verticalSliderThumb = style; vSliderValue = GUILayout.VerticalSlider(vSliderValue, 10.0F, 0.0F); } }