summaryrefslogtreecommitdiff
path: root/Assets/ActionTool/Editor/ActionNoteEditor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ActionTool/Editor/ActionNoteEditor.cs')
-rw-r--r--Assets/ActionTool/Editor/ActionNoteEditor.cs46
1 files changed, 34 insertions, 12 deletions
diff --git a/Assets/ActionTool/Editor/ActionNoteEditor.cs b/Assets/ActionTool/Editor/ActionNoteEditor.cs
index fcc4e08a..d6a0a425 100644
--- a/Assets/ActionTool/Editor/ActionNoteEditor.cs
+++ b/Assets/ActionTool/Editor/ActionNoteEditor.cs
@@ -1,18 +1,40 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
+using UnityEditor;
-public class ActionNoteEditor : MonoBehaviour
+namespace ActionTool
{
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+ // 编辑collider帧
+ public class ActionNoteEditor : EditorWindow
+ {
+ private void OnEnable()
+ {
+ titleContent = new GUIContent("Note");
+ maxSize = new Vector2(300, 110);
+ minSize = new Vector2(300, 110);
+ }
+
+ private void OnDisable()
+ {
+ }
+
+ private void Update()
+ {
+ }
+
+ private void OnGUI()
+ {
+ var animData = ActionManager.animationData;
+ if(animData == null)
+ {
+ this.Close();
+ return;
+ }
+ GUILayout.Space(5);
+ animData.note = GUILayout.TextArea(animData.note, GUILayout.Height(100));
+ GUILayout.Space(5);
+ }
+ }
+} \ No newline at end of file