A slider's value is bound to a text UI component. Note that custom update intervals are possible.
Inspector View -- Exposing a variable for binding
A text input is bound to a label. A StringMediator is used to easily access UI display values.
Inspector View - Setting up a string driver to link text data
Slider is bound to a cube's position. The cubes position is used to drive 2 spheres in a chain reaction.
Inspector View -- Changing a float into a Vector3 variable and binding to position
gLike
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
Available
Full-time
Andrew Case
Game Programmer Madison, WI