Assets\/Scenes\/Persistent\/Resources\/GameData<\/strong> folder<\/li>\n<\/ol>\nThat’s it!<\/p>\n
Now, when you look at this file within Google Sheets, you will notice that the names of each sheet match the names of the variables that the sheet data is to be loaded into. \u00a0For example, the race data sheet is named “m_raceList”, because if you look inside the GameData.cs script, you will see that it has a variable called “m_raceList” of type Race[].<\/p>\n
Also, within each sheet, the column headings (data in the first row) all also have variable names such as “m_name”, “m_scienceInitial”, etc. For the race data sheet, you will see that they all correspond to the variable names of the Race class. Doing it this way, my game code can magically load the game data directly from this JSON file with zero manual parsing.<\/p>\n
The following are screenshots of this process. Note that the screenshots are of an older version of this export tool, and things have changed slightly since then. The instructions above are accurate.<\/p>\n<\/div>