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
  1. Add-ons
  2. Progress

Runtime UI Setup

PreviousProgress ResourcesNextAPI

Last updated 7 months ago

Please also have a look at the demo scene. The RuntimeProgressTest class assigned to the _DEMO gameObject in the demo scene handles all important aspects, like starting a research and listening to events.

The runtime setup of a Progress Graph consists of three components:

  • Progress Controller (In the scene) Controls the loading of a graph, as well as starting a research

  • Progress Graph UI Controller (In the scene) Builds the actual graph

  • Progress Node UI Element The actual UI Node. Handles UI Interaction and starts a new research on mouse click.

You can of course create your own ProgressGraphUIController if you like to build your graph differently. Simply make sure to implement the IProgressGraphUIControl interface to your custom class and assign the GameObject which has the custom class to the ProgressController ProgressUIControl field in the inspector.

Progress Controller

The ProgressController contains multiple methods which allows you to control a Progress Graph like starting a research or listening to specific events. Make sure to have a reference to the ProgressController script to control your graph. Please have a look at the API section to see all available methods and events.

  • Progress Graph: The assigned Progress Graph (can be switched at runtime)

  • Progress UI Control: The GameObject which controls the actual Progress Graph UI. Must implement the IProgressGraphUIControl interface.

  • Load On Start: If true, the graph will be loaded directly on start.

ProgressController