using UnityEngine; namespace EditorAttributes { /// /// Attribute to display a bunch of values in toggleble buttons /// #if UNITY_6000_0_OR_NEWER [System.Obsolete("This attribute has been deprecated use the EnumButtons Attribute instead")] #endif public class SelectionButtonsAttribute : PropertyAttribute { public string CollectionName { get; private set; } public float ButtonsHeight { get; private set; } public bool ShowLabel { get; private set; } /// /// Attribute to display a bunch of values in toggleble buttons /// /// The name of the collection /// The height of the selection buttons in pixels /// Show the label of the field public SelectionButtonsAttribute(string collectionName = "", float buttonsHeight = 18f, bool showLabel = true) { CollectionName = collectionName; ButtonsHeight = buttonsHeight; ShowLabel = showLabel; } } }