diff options
author | chai <chaifix@163.com> | 2021-09-14 18:43:42 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-14 18:43:42 +0800 |
commit | 5ba836c17dcd9e6107f0de7a4c5d8063cab79fb4 (patch) | |
tree | bf0b7bccc63f95837f2032793304eddab2f43df5 /Assets/ActionTool/Editor/ActionNoteEditor.cs | |
parent | bfb214ce7dfac2485e43d42f5b8461bfddd123b8 (diff) |
*misc
Diffstat (limited to 'Assets/ActionTool/Editor/ActionNoteEditor.cs')
-rw-r--r-- | Assets/ActionTool/Editor/ActionNoteEditor.cs | 46 |
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 |