diff options
author | chai <chaifix@163.com> | 2021-09-15 12:50:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-15 12:50:26 +0800 |
commit | 98f31f197a126850a5878cd6e583ae6dbf64ab3d (patch) | |
tree | 207f726fb027c227d2fd58bd1bc340cb3a7eaf67 /Assets/ActionTool/Editor/AnimationCurveEditor.cs | |
parent | ad950c25abdf7f5a2f0428863d4035e9eb168fd5 (diff) |
*rename
Diffstat (limited to 'Assets/ActionTool/Editor/AnimationCurveEditor.cs')
-rw-r--r-- | Assets/ActionTool/Editor/AnimationCurveEditor.cs | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/Assets/ActionTool/Editor/AnimationCurveEditor.cs b/Assets/ActionTool/Editor/AnimationCurveEditor.cs deleted file mode 100644 index b50fe884..00000000 --- a/Assets/ActionTool/Editor/AnimationCurveEditor.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - [CustomPropertyDrawer(typeof(CurveDictionary))] - public class CurveDictionaryDrawer : SerializableDictionaryPropertyDrawer { } - - public class AnimationCurveEditor : EditorWindow - { - - SerializedObject obj; - - private void OnEnable() - { - titleContent = new GUIContent("Curves"); - maxSize = new Vector2(300, 2000); - minSize = new Vector2(300, 200); - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - AnimationData animData = ActionManager.animationData; - if (animData == null) - { - this.Close(); - return; - } - - if (obj == null || obj.targetObject != animData) - { - obj = new SerializedObject(animData); - } - - var curves = obj.FindProperty("curves"); - EditorGUILayout.PropertyField(curves, true); - if (obj.ApplyModifiedProperties()) - { - } - } - } - -} |