Databinding Library for Unity
I made a databinding library for use within Unity. It is a general purpose tool that allows data from any Monobehaviour or ScriptableObject derived script to "drive" any other data on a specified component. It also has different options for when the value gets updated to optimize performance or link updates to certain events that happen in your game.
I started the project initially because I was tired of writing scripts that set UI display values based on some value from a game script. After some work, I was able to create a handful of common datatypes that support databinding and was using them to set the UI. Seeing the potential to link data together in the more general sense I decided to change the code to work not just for UI, but also work in the general sense. After extending the system, any 2 values can be kept in sync. There is event the option to perform transformations between the source value and destination value. You can see this at work in the last example.
View Website