using UnityEngine; namespace EditorAttributes { /// /// Attribute to draw a min max slider /// public class MinMaxSliderAttribute : PropertyAttribute { public float MinRange { get; private set; } public float MaxRange { get; private set; } public bool ShowValues { get; private set; } /// /// Attribute to draw a min max slider /// /// The minimum range of the slider /// The maximum range of the slider /// Show fields of the slider values public MinMaxSliderAttribute(float minRange, float maxRange, bool showValues = true) { MinRange = minRange; MaxRange = maxRange; ShowValues = showValues; } } }