Separate DataObjects
Last updated
Last updated
By default, Databrain organizes all DataObjects/ScriptableObjects inside its DataLibrary, keeping your project clean and uncluttered. If you prefer a different workflow, you can specify custom folders for DataObjects.
Open Databrain Settings and select DataObjects Folder.
Enable Custom DataObjects Folder and set a global DataObject folder by clicking Set Path.
If you already have DataObjects inside the DataLibrary, you can move them to the global folder by clicking Unparent all existing DataObjects to folder.
You can assign different folders for specific DataObject types:
Select the DataObject type from the list.
At the bottom, click Set Custom Folder Override to enable a custom folder for this type.
Click Set Path to choose a different folder.
All existing DataObjects of this type will automatically move to the selected folder.
ou can move DataObjects back to the DataLibrary at any time by clicking Parent all DataObjects to DataLibrary.
Databrain can detect DataObjects created outside the Databrain Editor. To enable this feature:
Ensure your ScriptableObject derives from DataObject.
Add the following attribute to your class to create a menu entry in the Project Create context menu: