Databox Documentation
  • Welcome
  • Installation
  • QuickStart
  • Concept And Workflow
  • Demo Scenes
  • Databox Object
  • Databox Object Manager
  • Databox Data Schemes
  • Import
  • Cloud
  • Runtime editor
  • UI Binding
  • Databox variable types
  • Runtime usage
  • Save and load on Mobile
  • Custom data type
  • Playmaker
  • Playmaker Actions
  • API
Powered by GitBook
On this page

UI Binding

PreviousRuntime editorNextDatabox variable types

Last updated 2 months ago

Databox has a very simple but powerful UI Binding component which allows you to bind Unity UI elements - Text, InputFields, Sliders, Toggles... - to a specific Databox object.

Simply add the DataboxUIBinding component to a UI Element, define the table, entry and value id and you're done. Make sure to set the Bind On Database Load to true if you want to bind the ui as soon as the Databox object has been loaded. That requires that you load the database on runtime by script. If you set the On Database Load to false you will need to call the Bind method manually. Please see the example scene for more information.