uecarlos / MinMaxSlider

MinMaxSlider for Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MinMaxSlider

Vector2 Example

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

How to install

This is a Unity package and can be installed via the package manager.

  1. go to Window -> Package Manager
  2. click on the + in the top left (or bottom right in older Unity versions)
  3. select "Add package from git URL..."
  4. paste the git url to this project

For a more detailed guide on how to install packages check out the official Package Manager site.

Supported Types

  • Vector2
  • Vector2Int
  • Float, Double
  • Integer, Long

How to use: Attribute

Use this namespace to use the attribute:

using Zelude;

Vector2, Vector2Int

Vector2 Example

Float, Double, Integer, Long

Vector2 Example

How to use: Custom Editor

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);

About

MinMaxSlider for Unity.

License:MIT License


Languages

Language:C# 100.0%