Databrain Documentation
databrain.ccDiscord
  • Welcome
  • Installation / Update
  • Interface
  • DataObject Property Drawer
    • No GUI Implemented - FIX
  • Getting started
  • Guides
    • Add data objects
    • Add data objects at runtime
    • Get initial data
    • Get/Set runtime data
    • Serialize DataObjects
    • Runtime Save & Load
    • Use custom serializer
    • Import
    • Search
    • Custom GUI
    • Custom GUI with Odin Inspector
    • Hierarchy Template
  • Separate DataObjects
  • Using Version Control
  • Attributes
    • DataObject attributes
    • Field attributes
  • API
    • DataLibrary
    • DataObject
  • FAQ
    • Databrain - FAQ
  • Add-ons
    • Events
    • Blackboard
    • Logic
      • Interface
      • Create Graph
      • Execute graph
      • Control flow execution in groups
      • Custom Nodes
        • Asynchronous execution
        • Node Attributes
      • Scene Components
      • Graph Events
      • Finite State Machine
        • Create custom Actions
        • Examples
        • State Machine Nodes
    • Stats
      • Achievements
      • Modifiers
      • Values
      • Progressions
      • Components
      • Nodes
    • Progress
      • Progress Settings
      • Progress Graph
      • Progress Resources
      • Runtime UI Setup
      • API
        • ProgressController
    • Techtree (LEGACY)
      • Techtree Manager
      • Techtree
      • TechtreeResource
      • Techtree UIBuilder
        • Custom Techtree Node Button
        • Tooltip
      • API
    • Localization
      • Localization Manager
      • Localization
      • Examples
      • Components
      • Import
      • API
    • Inventory
      • Getting started
      • Demo
      • Data setup
        • Inventories
        • Slot IDs
        • Items
          • Blueprints
          • Item rarities
        • Money
        • Loot tables
        • Events
      • Runtime UI
        • Setup
    • Dialogue
      • Getting Started
        • Demo
      • Dialogue runtime setup
      • Actors
        • Emotions
      • Localization
      • Audio
      • Animation
      • Variables
      • Custom theme
      • Import
      • Nodes
      • API
        • DialogueController
        • IDialogueUIControl
  • Changelog
    • Databrain - Changelog
      • 1.4.0
      • 1.3.2
      • 1.3.1
      • 1.3.0
      • 1.2.0
      • 1.1.0
      • 1.0.10
      • 1.0.9
      • 1.0.8
      • 1.0.7
      • <= 1.0.6
Powered by GitBook
On this page
  • Setup
  • Custom Folders for Specific DataObject Types
  • Reparent to DataLibrary
  • Creating DataObjects outside the DataLibrary

Separate DataObjects

PreviousHierarchy TemplateNextUsing Version Control

Last updated 1 month ago

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.

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:

  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{}