{"id":13661371,"url":"https://github.com/AsehesL/USubWindow","last_synced_at":"2025-04-25T02:32:48.297Z","repository":{"id":92745207,"uuid":"102950030","full_name":"AsehesL/USubWindow","owner":"AsehesL","description":"EditorWindow的多子窗口实现","archived":false,"fork":false,"pushed_at":"2018-05-04T07:15:52.000Z","size":620,"stargazers_count":120,"open_issues_count":0,"forks_count":30,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-11-07T14:24:18.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AsehesL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-09T11:26:00.000Z","updated_at":"2023-12-20T15:53:30.011Z","dependencies_parsed_at":"2023-04-25T03:48:14.391Z","dependency_job_id":null,"html_url":"https://github.com/AsehesL/USubWindow","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsehesL%2FUSubWindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsehesL%2FUSubWindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsehesL%2FUSubWindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AsehesL%2FUSubWindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AsehesL","download_url":"https://codeload.github.com/AsehesL/USubWindow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223979331,"owners_count":17235375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:01:33.538Z","updated_at":"2024-11-10T16:30:28.360Z","avatar_url":"https://github.com/AsehesL.png","language":"C#","funding_links":[],"categories":["Editor Window","C\\#"],"sub_categories":[],"readme":"# USubWindow\n\n一项简单的Unity Editor Window布局扩展工具，主要实现了基于树结构的子窗体系统，并通过反射的方式获得各窗口绘制方法，只需简单的添加Attribute即可方便的绘制一个子窗口。\n\n![示例1](doc/doc1.gif)\n\n示例：\n\n```\n[EWSubWindow(\"SunWinA\", EWSubWindowIcon.Game)]\nprivate void SubWinA(Rect main)\n{\n\tGUI.Label(new Rect(main.x, main.y, main.width, 20), \"SubWinA\");\n\n}\n\n[EWSubWindow(\"Grid\", EWSubWindowIcon.Game, true, SubWindowStyle.Grid)]\nprivate void SubWinA(Rect main)\n{\n\tif (GUI.Button(new Rect(main.x, main.y, 100, 20), \"Btn\"))\n\t{\n\n\t}\n}\n```\n\n更新：\n\n1.自定义子窗体图标\n\n2.增加Preview样式和Grid样式\n\n![](doc/doc2.gif)\n\n3.helpbox和toolbar\n\n![](doc/doc3.gif)\n\n4.自定义ToolBar和MsgBox\n\n5.保存Layout\n\n![](doc/doc4.jpg)\n\n5.自定义子窗体Drawer\n\n6.子窗体Drawer生命周期\n\n7.支持子窗体锁定和自定义右上角下拉框接口\n\n![](doc/doc5.png)\n\n![](doc/doc6.jpg)\n\n6.子窗体序列化支持\n\n7.自定义MsgBox Drawer\n\n8.动态添加窗口","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAsehesL%2FUSubWindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAsehesL%2FUSubWindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAsehesL%2FUSubWindow/lists"}