Description
Changelog
Reviews (0)

To use this importer, select the CSV/TSV file, change Import As to "CSV Data" in the Import dock, set the import options and click Reimport.

The CSV/TSV file will be imported as a custom Resource object. Lines in the file will be turned into elements of an array named records on the object.

func _ready():
    var data = preload("res://example.csv")
    print(data.records)  # array of data

The type of array elements is determined by the import options. records is an array of string arrays by default.

Import Options

  • Delimiter
    • Use "Comma" for CSV and "Tab" for TSV.
  • Headers
    • Use the first line as header fields. Each element of records will be a Dictionary with header fields as keys.
  • Detect Numbers
    • Convert fields from string to int or float when possible.
  • Force Float
    • Always use float when detecting numbers.
  • Detect Booleans
    • Convert fields from string to false or true when case-insetively detecting according strings.

Changelog for version v2.1

No changelog provided for this version.

Reviews

CSV Data Importer has no reviews yet.

Login to write a review.