diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Editor/Object Drawers | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Editor/Object Drawers')
4 files changed, 0 insertions, 60 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs deleted file mode 100644 index ada9607b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-using UnityEditor;
-using BehaviorDesigner.Runtime;
-using BehaviorDesigner.Runtime.ObjectDrawers;
-
-namespace BehaviorDesigner.Editor.ObjectDrawers
-{
- [CustomObjectDrawer(typeof(FloatSliderAttribute))]
- public class FloatSliderDrawer : ObjectDrawer
- {
- public override void OnGUI(GUIContent label)
- {
- var floatSliderAttribute = (FloatSliderAttribute)attribute;
- if (value is SharedFloat) {
- var sharedFloat = value as SharedFloat;
- sharedFloat.Value = EditorGUILayout.Slider(label, sharedFloat.Value, floatSliderAttribute.min, floatSliderAttribute.max);
- } else {
- value = EditorGUILayout.Slider(label, (float)value, floatSliderAttribute.min, floatSliderAttribute.max);
- }
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta deleted file mode 100644 index 9fd520f8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/FloatSliderDrawer.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5f0987c6ff37141458ff776277e2b65a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs deleted file mode 100644 index 53a532ff..00000000 --- a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-using UnityEditor;
-using BehaviorDesigner.Runtime;
-using BehaviorDesigner.Runtime.ObjectDrawers;
-
-namespace BehaviorDesigner.Editor.ObjectDrawers
-{
- [CustomObjectDrawer(typeof(IntSliderAttribute))]
- public class IntSliderDrawer : ObjectDrawer
- {
- public override void OnGUI(GUIContent label)
- {
- var intSliderAttribute = (IntSliderAttribute)attribute;
- if (value is SharedInt) {
- var sharedFloat = value as SharedInt;
- sharedFloat.Value = EditorGUILayout.IntSlider(label, sharedFloat.Value, intSliderAttribute.min, intSliderAttribute.max);
- } else {
- value = EditorGUILayout.IntSlider(label, (int)value, intSliderAttribute.min, intSliderAttribute.max);
- }
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta b/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta deleted file mode 100644 index 8c3203a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Editor/Object Drawers/IntSliderDrawer.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ed5dac524fa5f61468bb6ca49a556b3b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
|