Custom GUI with Odin Inspector
Since version 1.1.0 it is now possible to use Odin Inspector attributes to create custom editor UIs. This requires Odin Inspector which is available at the Unity Asset-Store.
To make sure Databrain renders your DataObject class with Odin Inspector support, you will have to add the [UseOdinInspector] to your class. See following code example:
This results in following editor UI:
Note that drawing dictionaries are also supported using Odin Inspector.
Known Issues
Odin Inspector does quite a lot of things in the background regarding editor UI. Odin Inspector takes over the entire rendering of the Unity editor and forces it to render the default Inspector using IMGUI - The legacy UI System of Unity. Databrain has been made using the new UIToolkit system. Odin supports rendering of UIToolkit UI Elements by using a special UITk container inside of IMGUI. While this works quite well, it is still possible that certain issues could arise.
DataObject Dropdown property drawer not responding after compilation or when entering play mode.
Deselect and reselect the game object.
Last updated