unity-ui

Create Unity UI elements programmatically as Canvases, Panels, Buttons, Text, and Images.

1|Updated Feb 22, 2024
One-click install
npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-ui-stardust-liu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-ui
Source: https://github.com/Stardust-liu/EDC_Framework/tree/main/Assets/AI/Unity-Skills-1.5.5/unity-skills/skills/ui
Command: npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-ui-stardust-liu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity UI creation often requires repetitive boilerplate and careful hierarchy management. This Skill enables rapid programmatic creation of Canvas, Panels, Buttons, Text, and Images, reducing setup time and errors.

Core Features & Use Cases

  • Single-element UI creation: ui_create_canvas, ui_create_panel, ui_create_button, ui_create_text, ui_create_image.
  • Batch UI creation: ui_create_batch to assemble multiple elements in a single call.
  • Use Case: Build typical menus, HUDs, and in-game UI with consistent naming and structure.

Quick Start

Create Canvas, add a Panel under it, then add a Button with text to form a simple UI.

Frequently Asked Questions about unity-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Unity UI elements programmatically instead of using the editor?

You can create Unity UI elements programmatically by composing Canvases, Panels, Buttons, Text, and Images individually through dedicated commands or assembling multiple elements in a single batch call. This approach reduces repetitive boilerplate setup and hierarchy errors.

Can I generate multiple Unity UI components like buttons and panels in one go?

Yes, generating multiple Unity UI components in one go is possible through batch creation. The batch assembly feature builds several UI elements simultaneously while maintaining consistent naming, hierarchy, and basic properties across menus or HUDs.

What is the best way to build a game HUD or menu without writing repetitive boilerplate?

The best way to build a game HUD or menu without repetitive boilerplate is using programmatic UI composition tools. They handle element creation, naming, and hierarchy management automatically, reducing setup time and manual errors.

Does programmatic Unity UI creation support setting up parent-child hierarchy for Canvas and Panel?

Yes, programmatic Unity UI creation supports setting up parent-child hierarchy. You create a Canvas, add a Panel under it, then attach Buttons or Text, ensuring consistent structure and basic properties for typical in-game interfaces.

Can I batch create Text and Image elements for my game interface at the same time?

Yes, you can batch create Text and Image elements at the same time. The batch creation feature assembles multiple UI elements in a single call, applying consistent naming and basic properties to rapidly form in-game interfaces.