Select Page

Easily create Min Max slider with the provided PropertyDrawer and Data Type.

Min Max Slider

Min Max Slider

Easy Installation

Installation

  • Download or Copy/Paste MinMax.cs (Data Type) and put it inside your Scripts (not Editor) folder
  • Download or Copy/Paste MinMaxSliderAttribute.cs (Attribute) and put it inside your Scripts (not Editor) folder
  • Download or Copy/Paste MinMaxDrawer.cs (PropertyDrawer) and put it inside Editor folder
  • Now go to Usage

Usage

[SerializeField]
[MinMaxSlider(0f, 10f)]
protected MinMax elevation = new MinMax(4f, 8f);
  • Clamp Value
elevation.Clamp(16f);
  • Random Value
elevation.RandomValue

Resources