//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// using System; namespace BansheeEngine { /** @addtogroup Serialization * @{ */ /// /// Makes an integer or a floating point field be displayed as a slider with a specified range in the inspector. /// [AttributeUsage(AttributeTargets.Field)] public sealed class Range : Attribute { /// /// Creates a new range attribute. /// /// Minimum boundary of the range to clamp the field value to. /// Maximum boundary of the range to clamp the field value to. /// Whether the field should be rendered as a slider. public Range(float min, float max, bool slider = true) { this.min = min; this.max = max; this.slider = slider; } #pragma warning disable 0414 private float min; private float max; private bool slider; #pragma warning restore 0414 } /** @} */ }