From f049177e20a276049c61edbad631c1b2bbdd5706 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 15 Oct 2020 19:05:22 +0800 Subject: -advanced inspector +odin --- .../Plugins/AdvancedInspector/Attributes/Style.cs | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 Assets/Plugins/AdvancedInspector/Attributes/Style.cs (limited to 'Assets/Plugins/AdvancedInspector/Attributes/Style.cs') diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Style.cs b/Assets/Plugins/AdvancedInspector/Attributes/Style.cs deleted file mode 100644 index 5ffa27ac..00000000 --- a/Assets/Plugins/AdvancedInspector/Attributes/Style.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; - -namespace AdvancedInspector -{ - /// - /// Allow to change the style of an field item. - /// - [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method)] - public class StyleAttribute : Attribute - { - private string style = ""; - - /// - /// Name of the style to use. - /// Must be findable by GUI.skin.Find() - /// - public string Style - { - get { return style; } - set { style = value; } - } - - private bool label = true; - - /// - /// Force or prevent the field's label from being displayed. - /// - public bool Label - { - get { return label; } - set { label = value; } - } - - public StyleAttribute(string style) - : this(style, true) { } - - public StyleAttribute(string style, bool label) - { - this.style = style; - this.label = label; - } - } -} \ No newline at end of file -- cgit v1.1-26-g67d0