🔭Binding Values
The BindingSystem provides a custom-built searchable dropdown menu that simplifies the access and setup of each binding property. This drawer makes it easy to configure bindings within the Inspector. Additionally, the BindingSystem is compatible with the Odin Inspector, a popular Unity extension.
Here is the detailed anatomy view of a Bind<T>
drawer:
where:
Bind Toggle: whether the field/property is bound or uses direct value.
Bind Menu: reveals the menu specific to the field/property. Here new modifiers can be added and LiveDebug enabled for example.
Source: the object source to get the values from.
Type: the type of the field/property to bind.
Mode: this is the direction this bind is working. Can be read-only, write-only or both read and write.
Path: the path to bind. Uses a different format than the raw path.
Converter: when a converter is used, the line will appear. If the icon is gray, this means the conversion is safe, otherwise if orange, the conversion may fail, because the types are not fully compatible.
Converter Type: what type of converter is being used.
Modifiers: the list of modifiers. Note: the order is very important. Note: incompatible modifiers may not be shown.
A. Modifier Mode: when this modifier is used, during read operation, during write or during both.
B. Move Up: moves this modifier up in the list.
C. Move Down: moves this modifier down the list.
D. Delete: removes the modifier from the list.
Value Field: the field of the value when the field/property is not bound.
Path Value Preview: when enabled, shows a preview of data at selected path.
The custom dropdown lets you select either direct entries:
Or compound entries when both the direct entry and its children are valid choices:
Last updated