From 5ba836c17dcd9e6107f0de7a4c5d8063cab79fb4 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 14 Sep 2021 18:43:42 +0800 Subject: *misc --- Assets/ActionTool/Editor/ActionNoteEditor.cs | 46 ++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 12 deletions(-) (limited to 'Assets/ActionTool/Editor/ActionNoteEditor.cs') 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 -- cgit v1.1-26-g67d0