Class ColumnMapping
Provides preconfigured columns mappings that can be used with Csv.
Namespace: UnityEditor.Localization.Plugins.CSV.Columns
Syntax
public static class ColumnMapping
Methods
AddLocaleMappings(IList<CsvColumns>, Boolean)
Adds a LocaleColumns for any that are missing, using the project locales as the source.
Declaration
public static void AddLocaleMappings(IList<CsvColumns> cells, bool includeComments = true)
Parameters
Type | Name | Description |
---|---|---|
IList<CsvColumns> | cells | The current list of CsvColumns. |
Boolean | includeComments | Should the new LocaleColumns include comments extracted from metadata? |
CreateDefaultMapping(Boolean)
Creates default mappings which include KeyIdColumns and a LocaleColumns for each project locale.
Declaration
public static List<CsvColumns> CreateDefaultMapping(bool includeComments = true)
Parameters
Type | Name | Description |
---|---|---|
Boolean | includeComments | Should a column be added for comments extracted from metadata? |
Returns
Type | Description |
---|---|
List<CsvColumns> | The list of column mappings. |