NEW SINCE UPDATE 1.1.1
Instead of using strings for calling GetData and AddData - which can be error prone - you can generate static keys from your DataboxObject. Another great advantage is, that static keys are structured in classes and sub-classes based on tables and entries.
Simply click on the Generate Keys button in the Databox Object editor.
Select a file name and click on save.
The keys are now accessible by using the databox object name + "_KEYS". Let's assume we have a DataboxObject called PlayerData then we can use:
// Data is the table name - so we use TableName to access the static key PlayerData_KEYS.Data.TableName // Player is the entry name inside of the table Data - so we use EntryName to access the static key PlayerData_KEYS.Data.Player.EntryName // Health is located inside of the player entry - so we can simply use the _Health key. PlayerData_KEYS.Data.Player._Health
public DataboxObject data; var health = data.GetData<IntType>(PlayerData_KEYS.Data.TableName, PlayerData_KEYS.Data.Player.EntryName, PlayerData_KEYS.Data.Player._Health);