using System.Collections.Generic; using System.IO; using System.Linq; using Framework; using Gameplay.Character; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace Art.temp.Editor.AnimationTools { public class AnimationTool : EditorWindow { [MenuItem("Test/Animation 工具/Animation")] public static void ShowWindow() { GetWindow("Animation Tools"); } public void CreateGUI() { var styleSheet = AssetDatabase.LoadAssetAtPath("Assets/Art/temp/Editor/CommonUSSFile.uss"); rootVisualElement.styleSheets.Add(styleSheet); Box box1 = new(); box1.Add(new Label("Anim file tool")); box1.Add(new Button() { name = "meta_btn", text = "重新生成 meta 文件并设置 avatar" }); box1.Add(new Button() { name = "renameClip_btn", text = "rename animationClip" }); box1.Add(new Button() { name = "copyAnim_btn", text = "提取 anim to compressedShow" }); box1.Add(new Button() { name = "copyTempAnim_btn", text = "提取 anim to compressed" }); box1.Add(new Button() { name = "find something", text = "Find Fire" }); rootVisualElement.Add(box1); box1.Q