From 98f31f197a126850a5878cd6e583ae6dbf64ab3d Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 15 Sep 2021 12:50:26 +0800 Subject: *rename --- Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs (limited to 'Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs') 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 -- cgit v1.1-26-g67d0