UIToolkitMenuCreator
UI Toolkit Menu Creator is a class and UXML/Stylesheet you can extend from to easily create Unity Menus
Install / Use
/learn @DanielSnd/UIToolkitMenuCreatorREADME
UIToolkitMenuCreator
UI Toolkit Menu Creator is a class and UXML/Stylesheet you can extend from to easily create Runtime Unity Game Menus from C# code without having to edit UXML.
Dependencies
UI Toolkit Menu Creator uses DOTween for fading menus:
DOTween License here
Demo

The demo scene is in Assets\MenuCreatorDemo\MenuCreatorDemo.scene. Its main file is **Assets\MenuCreatorDemo\MenuDemo.cs and shows how to use Menu Creator.
This is how the first demo menu is set up in code:
public void CreateFirstDemoMenu()
{
StartBasicMenu("Main Menu");
AddTwoButtonsWhenPossible(
new MenuButton("First Button", () => {Debug.Log("Pressed First Button");}, ButtonColors.ButtonGrey),
new MenuButton("Second Button", () => {Debug.Log("Pressed Second Button");}, ButtonColors.ButtonBlueAlt)
);
AddSpacer();
var addedLabel = AddBigLabel("This label changes with the text field/slider values!");
AddSpacer();
AddTextField("Text Field", evt => { addedLabel.text = $"Text Field is: {evt.newValue}";},"Default Text Field Text");
AddSpacer();
AddSliderInt("Slider",0,0,10, evt => { addedLabel.text = $"Slider is set to {evt.newValue}";});
AddSpacer();
AddButton(new MenuButton("Other Menu", () =>
{
ChangeToMenu(CreateOtherMenu);
}));
}
Usage
- Extend your menu file from MenuCreator
- Add a UIDocument to the scene with MenuCreatorUXML as its source asset.
- Add your menu file as a component to the same gameobject.
- Refer to the Menu Demo on what methods to call to setup your menu.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
