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

  1. Open Databrain Settings and select DataObjects Folder.

  2. Enable Custom DataObjects Folder and set a global DataObject folder by clicking Set Path.

Custom Folders for Specific DataObject Types

You can assign different folders for specific DataObject types:

  1. Select the DataObject type from the list.

  2. At the bottom, click Set Custom Folder Override to enable a custom folder for this type.

  3. 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