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/RangeValue.cs | |
parent | 6990a0d1fbdcbbf404f40713363ac1a148c8840a (diff) |
-advanced inspector
+odin
Diffstat (limited to 'Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs')
-rw-r--r-- | Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs b/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs deleted file mode 100644 index a0331216..00000000 --- a/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; - -namespace AdvancedInspector -{ - /// <summary> - /// Similar to Unity's "Range" attribute but for the Advanced Inspector. - /// However, Unity's version is flagged to be "Field Only", while this one can be placed on Properties. - /// </summary> - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class RangeValueAttribute : Attribute, IListAttribute - { - private float min; - - /// <summary> - /// Min value, the current value cannot go below that. - /// </summary> - public float Min - { - get { return min; } - set { min = value; } - } - - private float max; - - /// <summary> - /// Max value, the current value cannot go above that. - /// </summary> - public float Max - { - get { return max; } - set { max = value; } - } - - public RangeValueAttribute(float min, float max) - { - this.min = min; - this.max = max; - } - } -}
\ No newline at end of file |