GetCSVEntry()
Purpose #
Gets a single CSV entry at the corresponding row and column position, if the resource object is a valid CSV File resource. Otherwise returns a null object.
Syntax #
string GetCSVEntry(int row_index, int column_index);
Parameters
column_index | The column index to retrieve the CSV data from. |
row_index | The row index to retrieve the CSV data entry from. |
Example #
function Update()
{
csv = Document.FindResourceByName("test.csv");
if(csv != null)
{
csvData = csv.GetCSVEntry(0, 1);
Log("entry at 0,1 : " + csvData);
}
}