CombatR.cs 934 B

123456789101112131415161718192021222324252627282930
  1. using UnityEditor;
  2. using UnityEngine;
  3. using UnityEngine.UIElements;
  4. public class CombatR : EditorWindow
  5. {
  6. // [SerializeField]
  7. // private VisualTreeAsset m_VisualTreeAsset = default;
  8. //
  9. // [MenuItem("Window/UI Toolkit/CombatR")]
  10. // public static void ShowExample()
  11. // {
  12. // CombatR wnd = GetWindow<CombatR>();
  13. // wnd.titleContent = new GUIContent("CombatR");
  14. // }
  15. //
  16. // public void CreateGUI()
  17. // {
  18. // // Each editor window contains a root VisualElement object
  19. // VisualElement root = rootVisualElement;
  20. //
  21. // // VisualElements objects can contain other VisualElement following a tree hierarchy.
  22. // VisualElement label = new Label("Hello World! From C#");
  23. // root.Add(label);
  24. //
  25. // // Instantiate UXML
  26. // VisualElement labelFromUXML = m_VisualTreeAsset.Instantiate();
  27. // root.Add(labelFromUXML);
  28. // }
  29. }