app-ui-mvvm

Integrate MVVM and dependency injection into Unity App UI development.

9|3|Updated May 8, 2025
One-click install
npx skills add https://github.com/needle-mirror/com.unity.dt.app-ui --skill app-ui-mvvm-needle-mirror
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: app-ui-mvvm
Source: https://github.com/needle-mirror/com.unity.dt.app-ui/tree/main/Plugins~/skills/app-ui-mvvm
Command: npx skills add https://github.com/needle-mirror/com.unity.dt.app-ui --skill app-ui-mvvm-needle-mirror

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines Unity App UI development by unifying MVVM patterns with dependency injection to create maintainable, testable, and scalable UI architectures.

Core Features & Use Cases

  • Provides a clear MVVM structure: Models, ViewModels, and Views with data binding, commands, and observable properties.
  • Integrates DI through AppBuilder, service registration, and optional [Service] injection for ViewModels and views.
  • Includes lifecycle and binding patterns for Unity's UI Toolkit, enabling robust UI workflows and designer/developer collaboration.

Quick Start

Create a ViewModel using ObservableObject, register services in AppBuilder, and instantiate your first view to bootstrap the UI.

Frequently Asked Questions about app-ui-mvvm

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

FAQPage Schema
How do I implement MVVM with dependency injection in Unity UI Toolkit?

You can implement MVVM with dependency injection in Unity by using AppBuilder for service registration and injecting services into ViewModels, creating a maintainable and testable architecture for UI Toolkit.

What is the best way to structure Views and ViewModels for Unity App UI?

The best way to structure Views and ViewModels is using an MVVM pattern with ObservableObjects, data binding, and RelayCommands, which separates UI logic and enables robust designer and developer collaboration.

Can I use dependency injection with ObservableProperties in Unity ViewModels?

Yes, you can use dependency injection with ObservableProperties by registering services in AppBuilder and utilizing optional [Service] injection to directly supply dependencies to your ViewModels and views.

How do I bootstrap a Unity UI Toolkit View with a ViewModel and DI?

To bootstrap a Unity UI Toolkit View, create a ViewModel using ObservableObject, register your required services in AppBuilder, and instantiate your first view to launch the bound UI workflow.

Why use MVVM and DI patterns for Unity UI development?

Using MVVM and DI patterns for Unity UI development unifies architecture workflows and dependency management, resulting in scalable, maintainable, and testable user interfaces that streamline project growth.

Does Unity UI Toolkit support data binding and lifecycle patterns for MVVM?

Yes, Unity UI Toolkit supports data binding and lifecycle patterns for MVVM, enabling robust UI workflows through observable properties and commands that keep ViewModels synchronized with the UI.