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
recordswill be aDictionarywith header fields as keys.
- Use the first line as header fields.
Each element of
- Detect Numbers
- Convert fields from string to
intorfloatwhen possible.
- Convert fields from string to
- Force Float
- Always use
floatwhen detecting numbers.
- Always use
- Detect Booleans
- Convert fields from string to
falseortruewhen case-insetively detecting according strings.
- Convert fields from string to
Changelog for version v2.1
No changelog provided for this version.