-
Notifications
You must be signed in to change notification settings - Fork 888
Add Support for UI Toolkit #507
Comments
Hey @crazyjackel, |
Hello @scho ! I would personally be really interested to see your code if possible, I'm also working with UITK and UniRX ! |
I am trying with something like this for right now. The Idea is that I can bind to Reactive Commands. https://github.com/crazyjackel/redmoon-reactiveKit I am still working on this and there is a little bit of testing, but it works with Unity's Package Manager, so that's nice. (Though, Unity's Package Manager really needs some work, can't even update git packages (planned for 2021.2)) |
Thank you very much, I'm going to test it right now ! |
@Kaiymu: |
No problem at all ! And thank you for that, I'm looking into your implementation right now ;). |
I like some of these, but I have some general critiques on impl. Bind Display should have IObservable over IObservable to support future DisplayStyles, such as Grid being added. Also saves on a calculation. I think ClickEvents should pass the event in as an action to implement. Seeing someone else's implementation suggests some better ways to do mine. |
@crazyjackel: Regarding the click events: _confirmButton.Bind(viewModel.Confirm).AddTo(this); Regarding BindDisplay: @Kaiymu: |
I am updating my implementation package for Unity with some of the concepts that you provided. I think having this as a separate package would be good instead of further bloating out this package. That is one thing I dislike about UniRX is that it is rather bloated. |
@crazyjackel: |
https://github.com/crazyjackel/redmoon-reactiveKit I have been developing this, I have updated the development branch recently. Provided is a Sample. Feel free to try it out and submit issues. (Besides the Extensions, I also am including a MVVM-type system and a dependency (thought, I might make it a soft-dependency) for my Dependency Injection Package) My Binding Extensions Implementation: |
@crazyjackel: Any reason why not using Zenject for DI? |
It’s less of dependency injection and more of a way for a class to get references to enabling and disabling managers classes. Probably main reason is that I was not aware of it or how to use it. I like how simple your view is, but I like to keep the view and the functionality of the view model separate (also as a way to have separate loading times). The code mostly comes from when I did some WPF work with ReactiveUI (copy what seems to work to a new system.) |
Hi there,
I am a developer using a combination of UniRX and UI Toolkit to do a pseudo-MVVM. UI Toolkit (Formerly UI Elements) is a preview package provided by Unity that provides a UI that is of industry Standard Design, as opposed to Unity's more simplistic hierarchical design. UI Toolkit allows for building out UI using a single-source declarative language. UniRX offers support for Bindings with the standard Unity UI (things like Buttons and Labels). UI Toolkits features alternative versions of such Buttons and Labels. I would appreciate the creation of support for Bindings with UI Toolkit's respective Visual Elements as either an add-on package or integrated into the main repo.
(Note: I viewed the UniRX tag before writing, but only looked at the first page and in searches, I could not find an add-on for UI Toolkit that already exists; It may well already be developed and I missed it. Please inform me as it would be incredibly helpful within my project)
The text was updated successfully, but these errors were encountered: