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); } } }