diff options
Diffstat (limited to 'Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs')
-rw-r--r-- | Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs b/Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs new file mode 100644 index 00000000..d6a0a425 --- /dev/null +++ b/Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs @@ -0,0 +1,40 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEditor;
+
+namespace ActionTool
+{
+
+ // 编辑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 |