diff --git a/Assets/ModuleEditor/TestEditorWindow.cs b/Assets/ModuleEditor/TestEditorWindow.cs deleted file mode 100644 index f6fc214..0000000 --- a/Assets/ModuleEditor/TestEditorWindow.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEditor; -using UnityEngine; -using UnityEngine.UIElements; - -public class TestEditorWindow : EditorWindow { - [SerializeField] - private VisualTreeAsset m_VisualTreeAsset = default; - - [MenuItem("Window/MuHua/TestEditorWindow")] - public static void ShowExample() { - TestEditorWindow wnd = GetWindow(); - wnd.titleContent = new GUIContent("TestEditorWindow"); - } - - public void CreateGUI() { - // Each editor window contains a root VisualElement object - VisualElement root = rootVisualElement; - - // VisualElements objects can contain other VisualElement following a tree hierarchy. - VisualElement label = new Label("Hello World! From C#"); - root.Add(label); - - // Instantiate UXML - VisualElement labelFromUXML = m_VisualTreeAsset.Instantiate(); - root.Add(labelFromUXML); - } -} diff --git a/Assets/UI Toolkit/Component/Dropdown/Dropdown.uxml b/Assets/UI Toolkit/Component/Dropdown/Dropdown.uxml index 0c2847f..d211911 100644 --- a/Assets/UI Toolkit/Component/Dropdown/Dropdown.uxml +++ b/Assets/UI Toolkit/Component/Dropdown/Dropdown.uxml @@ -5,7 +5,7 @@ - + diff --git a/Assets/UI Toolkit/Component/Dropdown/DropdownTemplate.uxml b/Assets/UI Toolkit/Component/Dropdown/DropdownTemplate.uxml index dc08a70..e3d8652 100644 --- a/Assets/UI Toolkit/Component/Dropdown/DropdownTemplate.uxml +++ b/Assets/UI Toolkit/Component/Dropdown/DropdownTemplate.uxml @@ -1,6 +1,6 @@