U Gui Window Menu

MIT
by JINZO631

simple ugui menu

( Crawled an hour ago )
+

uGUI-window-menu

導入

使用方法

https://github.com/JINZO631/uGUI-window-menu/blob/master/Assets/IgniteModule/Example/ExampleWindowCreate.cs

IgniteWindow.Create("ExampleWindow")
            .AddLabel("Label")
            .AddButton("Button", _ => Debug.Log("OnClick"))
            .AddSlider("Slider", v => Debug.LogFormat("Slider:{0}", v))
            .AddInputField("InputField", onEndEdit: v => Debug.LogFormat("InputField:{0}", v))
            .AddScroll()
            .LastNestedGroup
            .AddLabel("Item1")
            .AddLabel("Item2")
            .AddLabel("Item3")
            .Parent
            .AddDropdown(Params.To("Item1", "Item2", "Item3"), v => Debug.LogFormat("Dropdown:{0}", v))
            .AddToggle("Toggle", v => Debug.LogFormat("Toggle:{0}", v))
            .AddFoldOut("FoldOut")
            .LastNestedGroup
            .AddButton("ButtonA", _ => Debug.Log("OnClick ButtonA"))
            .AddButton("ButtonB", _ => Debug.Log("OnClick ButtonB"))
            .AddButton("ButtonC", _ => Debug.Log("OnClick ButtonC"));

image