Class KeyIdColumns
Represents 3 possible columns in CSV data:
- Key. The unique name of the entry. This value is always included when exporting.
- Id. The Id value for the entry. This field is optional however strongly recomended if you expect to change the Key names.
- Shared Comments. Comment taken from Shared
Table for each entry. This field is optional.Data
Implements
Inherited Members
Namespace: UnityEditor .Localization.Plugins.CSV.Columns
Assembly: Unity.Localization.Editor.dll
Syntax
[Serializable]
public class KeyIdColumns : CsvColumns, IKeyColumn
Properties
Name | Description |
---|---|
Id |
The name of the Id field when exporting and importing. When importing this name will be checked against the headers to determine if an Id column is present in the CSV data. |
Include |
Should the Id field be included as a field when exporting?
When importing Id |
Include |
Should the shared Comment be included as a field when exporting?
When importing Shared |
Key |
The name of the Key field when exporting and importing. When importing this name will be checked against the headers to determine if a Key column is present in the CSV data. |
Shared |
The name of the Shared Comments field when importing and exporting. When importing this name will be checked against the headers to determine if a Shared Comment column is present in the CSV data. |
Methods
Name | Description |
---|---|
Read |
Called when reading a CSV file column header row.
This call should be used to determine which column indexes to use during Read |
Read |
Called when the CSV file has been imported. This can be used to perform any required cleanup. |
Read |
Returns the entry that should be mapped for the current row or null if one can not be found. |
Read |
Called when reading each row of the CSV file. Unity recommends to store the indexes of the rows you are
interested in during Read |
Write |
Called when writing the header row of the CSV file.
Each column that will be written to during Write |
Write |
Called when writing each row of the CSV file. This is called in the same order as Write |