Odin Inspector
Last updated
Last updated
The Binding System seamlessly integrates with Odin Inspector, a widely-used Unity plugin, offering robust support for nearly all of its features. However, it's important to note that some features reliant on Odin Serialized Properties may not be fully supported.
To transfer attributes assigned to a Bind<T>
field to its inner T
field, simply place the [Bind]
attribute above the attributes intended for transfer to the T
field. Any attributes positioned above the [Bind]
attribute will remain attached to the Bind<T>
field.
The example below shows what happens when [Bind]
attribute is above both [Range]
and [MinValue]
. Both attributes target the inner value field (in this case a floating point field.
Below is the same example, but [Range]
attribute sits above [Bind]
attribute. In the inspector, [Range]
attribute correctly indicates that it cannot process the type.
Sometimes Odin extension does not activate immediately (mostly when adding Odin Inspector after Binding System). In this case, a simple Unity restart will fix the issue.