csv toolkit View on Asset Store (opens in new tab)

Package details

Latest version
1.0
Last updated
First released
Unity version
2021.3.20 or later
Package size
122 KB
Files
6
Favorites
12
Views in the past week
9

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

csv toolkit

by codemaker2015 (opens in new tab)

No ratings yet

The CSVParser package is a simple utility for reading and writing CSV files in Unity3D.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for csv toolkit, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 1

csv toolkit video 1

About this asset

CSVToolKit is your go-to solution for seamlessly managing CSV files within your Unity3D projects. Whether you're reading data from external sources or writing back to CSV files, CSVToolKit simplifies the process with its intuitive CSVParser class and practical CSVParserDemo for demonstration and integration.

From the publisher's Asset Store listing.

Technical details

The CSVParser package is a simple utility for reading and writing CSV files in Unity3D. It provides a CSVParser class for parsing CSV files and a CSVParserDemo class for demonstrating its usage.

CSVParser Class:

CSVParser is designed as a singleton to ensure consistency and efficiency throughout your project.

public class CSVParser : MonoBehaviour {

// ... (class implementation)

}

Properties:

  • lineSeparator: Character used as the line separator (default: '\n').
  • fieldSeparator: Character used as the field separator (default: ',').

Methods:

  • SetLineSeparator(char separator): Set the line separator character.
  • SetFieldSeparator(char separator): Set the field separator character.
  • ReadData(string path, string filename): Read CSV data from a file.
  • AddData(string path, string filename, List<string> values): Add data to an existing CSV file.

Usage Example:

// Reading CSV data

List<List<string>> data = CSVParser.Instance.ReadData("", "Data.csv");

// Adding data to CSV

CSVParser.Instance.AddData("", "Data.csv", new List<string>{"value1", "value2"});