An open API service indexing awesome lists of open source software.

https://github.com/alexmalyutindev/ugui-view-model

Proof of the concept of the view-model binding layer.
https://github.com/alexmalyutindev/ugui-view-model

ui unity

Last synced: 10 months ago
JSON representation

Proof of the concept of the view-model binding layer.

Awesome Lists containing this project

README

          

[WIP] UGUI ViewModel Binding
---
Simple reactive View-ViewModel binding system for Unity's UGUI.

Usage:
---
```csharp
[ViewModelRoot]
public class MyViewModel : ViewModelRoot
{
[ViewModelProperty("MyFloat")]
private PropertyView _myFloatProperty;

private MyModel _model;

public void Initialize(MyModel model)
{
_model = model;
_model.MyFloat.Subscribe(value => _myFloatProperty.Set(value));
}
}
```

TODOs:
---
- [ ] Add attribute for ViewModel properties
- [ ] Replace field's name binding with unique name or id
- [ ] Setup CI/CD for package