All Projects → grofit → bindingsrx

grofit / bindingsrx

Licence: MIT license
A 2 way binding system for unity using unirx

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to bindingsrx

Unirx
Reactive Extensions for Unity
Stars: ✭ 5,501 (+4946.79%)
Mutual labels:  unirx, rx
RxPagination
Implement pagination in just few lines with RxPagination
Stars: ✭ 20 (-81.65%)
Mutual labels:  rx
callbag-subscribe
A callbag sink (listener) that connects an Observer a-la RxJS. 👜
Stars: ✭ 17 (-84.4%)
Mutual labels:  rx
Xamarin-Android
PSPDFKit for Android wrapper for the Xamarin platform.
Stars: ✭ 18 (-83.49%)
Mutual labels:  bindings
lua.cr
Crystal to Lua bridge
Stars: ✭ 56 (-48.62%)
Mutual labels:  bindings
x11-rs
Rust bindings for X11 libraries
Stars: ✭ 169 (+55.05%)
Mutual labels:  bindings
RxBilling
Rx wrapper for Billing Library with connection management
Stars: ✭ 79 (-27.52%)
Mutual labels:  rx
eventkit
Event-driven data pipelines
Stars: ✭ 94 (-13.76%)
Mutual labels:  rx
InterReact
Interactive Brokers reactive C# API.
Stars: ✭ 28 (-74.31%)
Mutual labels:  rx
bound
Data-binding made easy
Stars: ✭ 21 (-80.73%)
Mutual labels:  bindings
node-tdlib
TDLib Binding with Telegram Bot API Reimplemention for Node.js
Stars: ✭ 35 (-67.89%)
Mutual labels:  bindings
DARK
Dagger 2 + Anko + Rx + Kotlin
Stars: ✭ 27 (-75.23%)
Mutual labels:  rx
mltools
MLDB Unity Editor Bindings
Stars: ✭ 22 (-79.82%)
Mutual labels:  bindings
crystal-chipmunk
Crystal bindings to Chipmunk, a fast and lightweight 2D game physics library
Stars: ✭ 38 (-65.14%)
Mutual labels:  bindings
fltk-rs
Rust bindings for the FLTK GUI library.
Stars: ✭ 929 (+752.29%)
Mutual labels:  bindings
redux-polyglot
Polyglot.js bindings for Redux
Stars: ✭ 59 (-45.87%)
Mutual labels:  bindings
purescript-outwatch
A functional and reactive UI framework based on Rx and VirtualDom
Stars: ✭ 33 (-69.72%)
Mutual labels:  rx
lualite
a one header library for creating Lua bindings to C++
Stars: ✭ 76 (-30.28%)
Mutual labels:  bindings
go-wlroots
Go binding for wlroots
Stars: ✭ 92 (-15.6%)
Mutual labels:  bindings
Xamarin-iOS
PSPDFKit for iOS wrapper for the Xamarin platform.
Stars: ✭ 14 (-87.16%)
Mutual labels:  bindings

BindingsRx

BindingsRx is a one or two way binding system for unity using unirx.

Discord

It allows you to write more succinct code while showing intent for properties which are bound to other properties, and looks something like this:

myInputField.BindTextTo(someReactiveProperty);
// Changing myInputField.text will update someReactiveProperty and vice versa

Dependencies

Features

  • Supports one and two way binding
  • Helpers for creating your own custom bindings
  • Works with ReactiveProperty<T> and regular values
  • Supports custom processing on binding via IFilter interface
  • Simplifies complex UI interactions, such as binding dropdown options

As mentioned it works with the unirx ReactiveProperty<T> but does not need them, so for example if I had a reactive property I could do:

var myReactiveProperty = new ReactiveProperty<float>(1.0f);
mySlider.BindValueTo(myReactiveProperty);

However if I was working with a 3rd party library I may not have ReactiveProperty objects, so for that I would do:

var myNormalValue = 1.0f;
mySlider.BindValueTo(() => myNormalValue, x => myNormalValue = x);

You can also specify if you want one way or two way bindings explicitly.

var myReactiveProperty = new ReactiveProperty<float>(1.0f);
mySlider.BindValueTo(myReactiveProperty, BindingTypes.OneWay);

Here is an example of making a dropdown in the UI bind to a reactive collection:

var exampleOptions = new ReactiveCollection<string>();
exampleOptions.Add("Option 1");
exampleOptions.Add("Option 2");
exampleOptions.Add("Some Other Option");

someDropdownUIElement.BindOptionsTo(exampleOptions);

Installation

You can take the unitypackage installation file from the relevent release.

Quick Start

  • Install the above package
  • Install UniRx

Running Examples

If you want to run the examples then just clone it and open the unity project in the src folder, then run the examples, I will try to add to as the library matures.

There are also a suite of tests which are being expanded as the project grows.

Docs

See the docs folder for more information. (This will grow)

Other Blurbs

If you like design patterns and practices then there is also a ECS framework built on unirx which can be found @ grofit/ecsrx.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].