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:
    1. Reader Sync: Injects the trimWhitespace and autoPadColumns settings from the Inspector into the CanleyCSVReader.
    2. Engine Trigger: Calls _reader.Load(data) to begin the character-based state machine parsing.
  • 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 a TextAsset is assigned to the Target File slot in the Inspector.