

Assumes that the first row of a sheet are column headers.Each sheet is saved separately to a Json file with the same name. If this is useful to anybody else, you can grab it from here.

You can do it manually via a window or it can be performed automatically whenever Unity refreshes (such as after an script change for example). For this I normally use Excel to create the config files, and then convert them to json so they can be easily read in via code.Īnyway, I've made a simple Editor plugin that allows you to convert excel files to json within Unity. For my games, I tend to put as much of the game data (such as in game item prices, unlock levels etc) as I can out into separate config files to enable tuning the game without needing to modify the code.
