Binding Values
Last updated
Last updated
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 Mode: this is the direction this bind is working. Can be read-only, write-only or both read and write. When holding CTRL (or CMD in MacOS) and clicking, it will toggle Live Debug
Field Toggles: these toggles hide or show secondary fields.
Bind Path: the path to bind. Uses a different format than the raw path.
Type: the type of the field/property to bind.
Bind Menu: reveals the menu specific to the field/property. Here new modifiers can be added and other options, such as Live Debug, can be enabled.
Source: the object source to get the values from.
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.
Modifiers: the list of modifiers. Note: the order is very important. Each modifier can be dragged to change their order.
A. Modifier Mode: when this modifier is used, during read operation, during write or during both. If a modifier doesn't show its modify mode button, then this modifier does not allow to change its mode.
B. Delete: removes the modifier from the list.
When clicking on path control or any other Bind option button, a custom dropdown, Smart Dropdown, will appear with relevant information or options to choose from. It can handle different types of data controls, such as checkboxes, input fields, buttons, groups, and more.
When selecting a bind path, the custom dropdown lets you select direct entries:
Or compound entries when both the direct entry and its children are valid choices:
Or search a value among the ones present: