diff options
Diffstat (limited to 'Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs')
-rw-r--r-- | Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs b/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs deleted file mode 100644 index b63d5c38..00000000 --- a/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; - -namespace AdvancedInspector -{ - /// <summary> - /// Redefine if a field/property can be expanded or not. - /// </summary> - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true)] - public class ExpandableAttribute : Attribute, IListAttribute - { - private bool expanded = false; - - /// <summary> - /// Makes the item expanded by default. - /// </summary> - public bool Expanded - { - get { return expanded; } - set { expanded = value; } - } - - private bool expandable = true; - - /// <summary> - /// Default true, can force a field to not be expandable. - /// </summary> - public bool Expandable - { - get { return expandable; } - set { expandable = value; } - } - - public ExpandableAttribute() { } - - public ExpandableAttribute(bool expandable) - { - this.expandable = expandable; - } - - public ExpandableAttribute(bool expandable, bool expanded) - { - this.expanded = expanded; - this.expandable = expandable; - } - } -}
\ No newline at end of file |