Separate DataObjects
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.
Setup
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.
Custom Folders for Specific DataObject Types
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.

Reparent to DataLibrary
ou can move DataObjects back to the DataLibrary at any time by clicking Parent all DataObjects to DataLibrary.
Creating DataObjects outside the 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:
// This will add an entry to the Project context menu.
// Right click in the project view and you'll see the entry Data / MyObject
[CreateAssetMenu(menuName = "Data/MyObject")]
public class MyObject : DataObject{}
Last updated