diff options
author | chai <chaifix@163.com> | 2021-05-18 22:37:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-05-18 22:37:34 +0800 |
commit | 047efd15559d7c62666f00392a987dccdc36d500 (patch) | |
tree | bc7745d2eae6f83e5c7c474d2858cc7c045f01a7 /UnityCollection/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs | |
parent | c5f33aa5dabcc8b447bc132c8448148fc7c55af4 (diff) |
+misc
Diffstat (limited to 'UnityCollection/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs')
-rw-r--r-- | UnityCollection/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/UnityCollection/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs b/UnityCollection/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs new file mode 100644 index 0000000..2e67b80 --- /dev/null +++ b/UnityCollection/Assets/Tools/EditorGUIHelper/MinMaxSliderAttribute/MinMaxSliderAttribute.cs @@ -0,0 +1,15 @@ +using UnityEngine;
+using UnityEditor;
+
+public class MinMaxSliderAttribute : PropertyAttribute
+{
+
+ public float min;
+ public float max;
+
+ public MinMaxSliderAttribute(float min, float max)
+ {
+ this.min = min;
+ this.max = max;
+ }
+}
\ No newline at end of file |