From f049177e20a276049c61edbad631c1b2bbdd5706 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 15 Oct 2020 19:05:22 +0800 Subject: -advanced inspector +odin --- .../AdvancedInspector/Attributes/Expandable.cs | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100644 Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs (limited to 'Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs') 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 -{ - /// - /// Redefine if a field/property can be expanded or not. - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true)] - public class ExpandableAttribute : Attribute, IListAttribute - { - private bool expanded = false; - - /// - /// Makes the item expanded by default. - /// - public bool Expanded - { - get { return expanded; } - set { expanded = value; } - } - - private bool expandable = true; - - /// - /// Default true, can force a field to not be expandable. - /// - 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 -- cgit v1.1-26-g67d0