unity-ui-data-binding

Synchronize Unity UI Toolkit elements with game data using BindableProperty wrappers.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/MuharremTozan/Ohm-Yura --skill unity-ui-data-binding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-ui-data-binding
Source: https://github.com/MuharremTozan/Ohm-Yura/tree/main/.agents/skills/unity-ui-data-binding
Command: npx skills add https://github.com/MuharremTozan/Ohm-Yura --skill unity-ui-data-binding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

By adopting MVVM-style data binding and a BindableProperty wrapper, it removes the need for manual Update loops and scattered UI refresh logic, improving performance and maintainability.

Core Features & Use Cases

  • BindableProperty<T>: A wrapper class that uses [CreateProperty] to expose values to the UI Toolkit binding engine.
  • MVVM (Model-View-ViewModel): Separates raw game data from UI-formatted data using a ViewModel mediator.
  • Reactive Synchronization: UI elements update automatically when the underlying property value changes (or is polled by the engine).
  • C# Based Binding: Set up complex bindings programmatically without relying on the UI Builder's inspector fields.

Quick Start

Create a ViewModel with BindableProperty fields, assign it as the root's dataSource, and bind the UI elements to the properties.

Frequently Asked Questions about unity-ui-data-binding

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

FAQPage Schema
How do I sync Unity UI with game data without using manual Update loops?

You can sync Unity UI with game data without manual Update loops by using MVVM-style data binding. A BindableProperty wrapper exposes values to the UI Toolkit binding engine, ensuring elements update automatically when underlying data changes.

What is the best way to set up MVVM data binding in Unity UI Toolkit?

The best way to set up MVVM data binding in Unity UI Toolkit is programmatically. You create a ViewModel with BindableProperty fields, assign it as the root's dataSource, and use SetBinding to declaratively link UI elements to those properties.

Can I bind health bars and labels to game data using C# in Unity?

Yes, you can bind health bars and labels to game data using C# in Unity. The system applies MVVM-style binding scenarios across these elements using a BindableProperty wrapper and programmatic SetBinding to satisfy a declarative binding model.

How does a BindableProperty wrapper work with the UI Toolkit binding engine?

A BindableProperty wrapper works with the UI Toolkit binding engine by using the CreateProperty attribute to expose values. This allows the engine to poll or react to value changes, synchronizing the UI automatically without requiring scattered refresh logic.

Does Unity UI Toolkit support declarative binding for MVVM architectures?

Yes, Unity UI Toolkit supports declarative binding for MVVM architectures. By separating raw game data from UI-formatted data using a ViewModel mediator, you can establish reactive synchronization where UI elements update automatically when properties change.