Unity Package to easily create a MinMaxSlider for your needs. Get started within seconds and configure your ranged values nicely and error safe.
- Works with prefabs and overriden properties
- Reposition and hide fields
- Support for lots of types
- Use quickly with custom attribute
- Use in custom inspector with editor code
This is a Unity package and can be installed via the package manager.
- go to Window -> Package Manager
- click on the + in the top left (or bottom right in older Unity versions)
- select "Add package from git URL..."
- paste the git url to this project
For a more detailed guide on how to install packages check out the official Package Manager site.
- Vector2
- Vector2Int
- Float, Double
- Integer, Long
Use this namespace to use the attribute:
using Zelude;
Use this namespace to use the editor code:
using ZeludeEditor;
All the Editor Code you need is in MMSEditorGUI and can be called like this:
MMSEditorGUI.MinMaxSlider(position, EditorGUIUtility.TrTempContent("My Slider"), myVector, 0f, 1f, SliderFieldPosition.Left, SliderFieldPosition.Right);