Detailed Method Reference
Namespace: Canley.Utility.CSV
Class: CanleyCSVManager
ParseRawData
public void ParseRawData(string data)- Description: The primary entry point for the parsing engine. It synchronizes Unity Inspector settings with the underlying Reader.
- Workflow:
- Reader Sync: Injects the
trimWhitespaceandautoPadColumnssettings from the Inspector into theCanleyCSVReader. - Engine Trigger: Calls
_reader.Load(data)to begin the character-based state machine parsing.
- Reader Sync: Injects the
- Parameters:
data: The raw, unparsed CSV string content.
- Returns:
void - Example:
string myWebCSV = "ID,Name\n1,Hero";
csvManager.ParseRawData(myWebCSV);NOTE
This method is called automatically on
Awake()if aTextAssetis assigned to the Target File slot in the Inspector.