ES3Spreadsheet.SetCell

public void SetCell<T>(int col, int row, T value)

Description

Sets the given cell to a particular value.

Non-primitive data is written to the spreadsheet in JSON format.

Parameters

[table th=”0″]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.”[/table]

Examples

// 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");