diff options
author | chai <chaifix@163.com> | 2020-10-15 19:05:22 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-15 19:05:22 +0800 |
commit | f049177e20a276049c61edbad631c1b2bbdd5706 (patch) | |
tree | 7d1a1cd9b690a5d9a8b9a65554a191d6ec769601 /Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs | |
parent | 6990a0d1fbdcbbf404f40713363ac1a148c8840a (diff) |
-advanced inspector
+odin
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 |