using System; namespace AdvancedInspector { /// /// Turns a float/int into a spinning knob. /// Because... Fancy. /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class AngleAttribute : Attribute, IListAttribute { private float snap = -1; /// /// Makes the control snap to the multiple of that value /// Default; -1. Negative values turn this behaviour off. /// public float Snap { get { return snap; } } public AngleAttribute() { } /// /// If snap is -1, the snap is disable. /// Snap makes the wheel "stick" to multiple of a fixed value. /// public AngleAttribute(float snap) { this.snap = snap; } } }