summaryrefslogtreecommitdiff
path: root/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-15 19:05:22 +0800
committerchai <chaifix@163.com>2020-10-15 19:05:22 +0800
commitf049177e20a276049c61edbad631c1b2bbdd5706 (patch)
tree7d1a1cd9b690a5d9a8b9a65554a191d6ec769601 /Assets/Plugins/AdvancedInspector/Attributes/Angle.cs
parent6990a0d1fbdcbbf404f40713363ac1a148c8840a (diff)
-advanced inspector
+odin
Diffstat (limited to 'Assets/Plugins/AdvancedInspector/Attributes/Angle.cs')
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Angle.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs b/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs
deleted file mode 100644
index 8b80ade5..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Turns a float/int into a spinning knob.
- /// Because... Fancy.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class AngleAttribute : Attribute, IListAttribute
- {
- private float snap = -1;
-
- /// <summary>
- /// Makes the control snap to the multiple of that value
- /// Default; -1. Negative values turn this behaviour off.
- /// </summary>
- public float Snap
- {
- get { return snap; }
- }
-
- public AngleAttribute() { }
-
- /// <summary>
- /// If snap is -1, the snap is disable.
- /// Snap makes the wheel "stick" to multiple of a fixed value.
- /// </summary>
- public AngleAttribute(float snap)
- {
- this.snap = snap;
- }
- }
-} \ No newline at end of file