ES3Spreadsheet Class
Description
Represents the cells of a spreadsheet, which can then be written to a CSV file using the ES3Spreadsheet.Save method.
Constructors
ES3Spreadsheet Constructor | Creates an empty ES3Spreadsheet. |
Properties
ES3Spreadsheet.RowCount | Gets the number of rows in the spreadsheet. |
ES3Spreadsheet.ColumnCount | Gets the number of columns in the spreadsheet. |
Methods
ES3Spreadsheet.SetCell | Sets the value of a given cell. |
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. |
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.Save(0,0, "hitpoints"); sheet.Save(1,0, 12); sheet.Save(0,1, "position"); sheet.Save(1,0, transform.position); // Save the file to a CSV. sheet.Save("myData.csv"); |