Zitga-Tech / ZBase.Foundation.Mvvm

An MVVM framework for Unity that utilizes C# Source Generator for better performance, based on CommunityToolkit.Mvvm
MIT License
11 stars 5 forks source link

How to make BindingPropertyAttribute effective on ObservableList<> #7

Closed eefan000 closed 2 months ago

eefan000 commented 2 months ago

It seems to have failed in UnionConverter. As it was generated by code, I don't know how to debug breakpoints and cannot determine the specific location of the failure

eefan000 commented 2 months ago

image Inconsistent TypeId

eefan000 commented 2 months ago

It seems that a converter needs to be implemented

grashaar commented 2 months ago

Hi @eefan000, I would like to inform you that I'm no longer be able to make any big contribution to this package (and Zitga Tech as a whole) since I've moved out of the company recently. In the future you might see this package in another form, by another name. But for the time being, I'm going to spend time on some personal stuffs.

Regarding ObservableList and the likes, I'd feel very appreciated if you could spend some time investigating if Cysharp/ObservableCollections can work with this MVVM implementation? Because I would like to not reinvent the wheel if possible. If push comes to shove, I would like to just copy the code of Cysharp/ObservableCollections and do little modifications.

eefan000 commented 2 months ago

Hi @eefan000, I would like to inform you that I'm no longer be able to make any big contribution to this package (and Zitga Tech as a whole) since I've moved out of the company recently. In the future you might see this package in another form, by another name. But for the time being, I'm going to spend time on some personal stuffs.

Regarding ObservableList and the likes, I'd feel very appreciated if you could spend some time investigating if Cysharp/ObservableCollections can work with this MVVM implementation? Because I would like to not reinvent the wheel if possible. If push comes to shove, I would like to just copy the code of Cysharp/ObservableCollections and do little modifications.

@grashaar It should be seamless to use. I have now implemented a simple infinite list data binding that can be directly used with any container. I use ObservableList<>just because it happens to be available.

Looking forward to your new library! If it comes out, please let me know!

image image image image image image

grashaar commented 2 months ago

It's good to know that this approach work for you seemlessly.