ES3Spreadsheet Class
Description
Represents the cells of a spreadsheet, which can then be written to a CSV file using the ES3Spreadsheet.Save method.
Constructors
Properties
ES3Spreadsheet.ColumnCount,”Gets the number of columns in the spreadsheet.”[/table]
Methods
ES3Spreadsheet.GetCell,”Gets the value at a given cell.”
ES3Spreadsheet.Save,”Saves the ES3Spreadsheet as a CSV file.”
ES3Spreadsheet.Load,”Loads a CSV file into an ES3Spreadsheet.”
ES3Spreadsheet.GetColumnLength,”Gets the height of a column.”
ES3Spreadsheet.GetRowLength,”Gets the width of a row.”[/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");