From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- Assets/Tools/ActionTool/Editor/ActionInfoEditor.cs | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 Assets/Tools/ActionTool/Editor/ActionInfoEditor.cs (limited to 'Assets/Tools/ActionTool/Editor/ActionInfoEditor.cs') diff --git a/Assets/Tools/ActionTool/Editor/ActionInfoEditor.cs b/Assets/Tools/ActionTool/Editor/ActionInfoEditor.cs deleted file mode 100644 index 0d4a0f4f..00000000 --- a/Assets/Tools/ActionTool/Editor/ActionInfoEditor.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; - -namespace ActionTool -{ - - // 编辑collider帧 - public class ActionInfoEditor : EditorWindow - { - private static string title; - private static string content; - private static Vector2 size; - - public static void ShowContent(string tlt, string cnt) - { - title = tlt; - content = cnt; - size = GUI.skin.label.CalcSize(new GUIContent(content)); - var editor = EditorWindow.GetWindow(true); - editor.titleContent = new GUIContent(title); - editor.OnEnable(); - } - - private void OnEnable() - { - titleContent = new GUIContent(title); - maxSize = new Vector2(50 + size.x, 10 + size.y); - minSize = maxSize; - } - - private void OnDisable() - { - } - - private void Update() - { - } - - private void OnGUI() - { - Vector2 size= GUI.skin.label.CalcSize(new GUIContent(content)); - GUI.Label(new Rect(5,5, size.x, size.y), content); - } - } -} \ No newline at end of file -- cgit v1.1-26-g67d0