Configuration


Before you can start adding data to your databox. You will need to specify a file name and a save path in the config. menu.

File name

  • Select the config menu and specify a file name. You can also add a custom extension to your file name and subfolders. Example: "Data/Database.myExt"

    • Persistent Data Path: Should be used for save game data only. Do not use it for your initial database data as it will not be included in a build.
    • Streaming Asset Path: Uses the "StreamingAssets" folder inside of your project. Great for files that should be loaded and saved upon runtime.
    • Resources: Use the resources path for loading the database file from a resources folder. It's not possible to save to a resources folder during runtime.
    • PlayerPrefs: Player prefs are a good way to create save games at runtime. Do not use it for your initial database data as it will not be included in a build.
Make sure to check out the official Unity documentation regarding the different save paths
Persistent Path
Streaming Asset Path

Encryption

  • Databox supports a simple XOR encryption. When enabled you'll need to provide an encryption key.

Compress Json

  • Compressing the json file significantly reduces the file size. On the other hand, the json file is no longer easy to read in a text editing tool.

Debug Mode

  • By enabling debug mode, Databox will create console logs on several events.



Next step: Add Data