ES3Spreadsheet.SetCell
Description
Sets the given cell to a particular value.
Non-primitive data is written to the spreadsheet in JSON format.
Parameters
Col | The column of the cell you want to set the value of. |
Row |
The row of the cell we want to set the value of. |
value |
The value we want to save. |
Examples
1 2 3 4 5 6 7 8 9 10 11 |
// Create a blank ES3Spreadsheet. var sheet = new ES3Spreadsheet(); // Save some values into the spreadsheet. sheet.SetCell(0,0, "hitpoints"); sheet.SetCell(1,0, 12); sheet.SetCell(0,1, "position"); sheet.SetCell(1,0, transform.position); // Save the file to a CSV. sheet.Save("myData.csv"); |