docs.unity3d.com
    Show / Hide Table of Contents

    Class ColumnMapping

    Provides preconfigured columns mappings that can be used with Csv.

    Inheritance
    Object
    ColumnMapping
    Namespace: UnityEditor.Localization.Plugins.CSV.Columns
    Syntax
    public static class ColumnMapping : object

    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023