horizontalSliderThumb
Style used by default for the thumb that is dragged in GUI.HorizontalSlider controls.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public GUIStyle horizontalSliderThumb { get; set; }
Remarks
The padding property is used to determine the size of the thumb.
Examples
using UnityEngine;public class Example : MonoBehaviour{ // Modifies only the horizontal slider style of the current GUISkin float hSliderValue = 0.0f; GUIStyle style; void OnGUI() { GUI.skin.horizontalSliderThumb = style; hSliderValue = GUILayout.HorizontalSlider(hSliderValue, 0.0f, 10.0f); }}