• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    C#
  • Created about 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

EditorWindow的多子窗口实现

USubWindow

一项简单的Unity Editor Window布局扩展工具,主要实现了基于树结构的子窗体系统,并通过反射的方式获得各窗口绘制方法,只需简单的添加Attribute即可方便的绘制一个子窗口。

示例1

示例:

[EWSubWindow("SunWinA", EWSubWindowIcon.Game)]
private void SubWinA(Rect main)
{
	GUI.Label(new Rect(main.x, main.y, main.width, 20), "SubWinA");

}

[EWSubWindow("Grid", EWSubWindowIcon.Game, true, SubWindowStyle.Grid)]
private void SubWinA(Rect main)
{
	if (GUI.Button(new Rect(main.x, main.y, 100, 20), "Btn"))
	{

	}
}

更新:

1.自定义子窗体图标

2.增加Preview样式和Grid样式

3.helpbox和toolbar

4.自定义ToolBar和MsgBox

5.保存Layout

5.自定义子窗体Drawer

6.子窗体Drawer生命周期

7.支持子窗体锁定和自定义右上角下拉框接口

6.子窗体序列化支持

7.自定义MsgBox Drawer

8.动态添加窗口