push-pop / Unity-MVVM

Lightweight MVVM Framework for Unity3D
MIT License
323 stars 27 forks source link

Databinding UX improvements #67

Open push-pop opened 3 years ago

push-pop commented 3 years ago

User should be able to use a dropdown menu to select multiple layers of properties/fields to bind.

Similar to UX here: image

I've worked on this before but did not complete the feature so a few Questions to think about:

  1. Should we iterate through all Properties AND Fields? For the first layer, I like enforcing only Properties and after that I think we can do properties and fields.

  2. Can we find a way to bind to properties of other views and not enforce binding to a ViewModel?

  3. When binding nested properties or fields, which Property do you subscribe to INotifyPropertyChanged on? That is one reason that it makes sense to do it like WPF In this way you are bound to a Property which is what the ChangeEvent is subscribed to, and then the Path as a separate dropdown. To me this makes more sense since then you know which property is changing and then you have the path for what value you are actually accessing.