DataObject Property Drawer
Last updated
Last updated
The DataObject dropdown property drawer is a very powerful UI element which draws your DataObjects fields and custom editor inside of your custom classes. To make use of the property drawer simply add the DataObjectDropdown attribute to your DataObject field. A required string must be provided to the attribute which is the name of the DataLibrary reference field. See following example:
The property drawer can display custom editors like the Logic - node editor, default fields and also custom Odin Inspector editors. (Since version 1.3)
Using the Runtime switch, switches from initial to the runtime data object. (If there's any runtime DataObject available)
Add DataObjectDropdown attribute to a DataObject field and provide the name of the DataLibrary field.
Select and assign the DataObject from the dropdown.
Un-assign the DataObject reference.
Create a new DataObject.
Inspector popup. Show DataObject fields which have the ExposeToInspector-attribute. You can modify those values directly from the Unity inspector.
View selected DataObject in the Databrain editor. (opens Databrain editor)
ExposeToInspector popup view. (Shows only fields which are marked with the ExposeToInspector attribute)