summaryrefslogtreecommitdiff
path: root/Assets/Tools/ActionTool/Editor/ActionNoteEditor.cs
blob: d6a0a425dbce142b66459df1669856fad6b86784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
		}
	}
}