Loading...
Loading...
Implementation of MVVM-style Data Binding for Unity UI Toolkit using the [CreateProperty] attribute and BindableProperty wrappers.
npx skill4agent add muharremtozan/unity-agent-skills unity-ui-data-bindingunity.properties[CreateProperty]BindableProperty.cs.txtBindingExample.cs.txtBindablePropertypublic BindableProperty<string> HealthText { get; }
HealthText = BindableProperty<string>.Bind(() => $"HP: {model.hp}/{model.maxHp}");dataSourceroot.dataSource = myViewModel;SetBindinglabel.SetBinding("text", "HealthText.Value");