ES3Spreadsheet.GetCell
Description
Gets the given cell to a particular value.
If the cell is out of the bounds of the spreadsheet, it will throw a IndexOutOfRange exception.
If the cell is in bounds, but no value has been set for the cell, it will return the default value of the data type you are loading. For example, null for reference types, or 0 for number types.
Parameters
T | The type of the data we wish to save to the cell. |
Col |
The column of the cell you want to get the value of. |
Row |
The row of the cell we want to get the value of. |
Returns
The value of the cell.
Examples
1 2 3 4 5 6 7 8 |
// Create a blank ES3Spreadsheet and load our CSV into it. var sheet = new ES3Spreadsheet(); sheet.Load("myData.csv"); // Load values from the spreadsheet int hitpoints = sheet.GetCell<int>(0,0); string name = sheet.GetCell<string>(0,1); transform.position = sheet.GetCell<Vector3>(0,2); |