docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ColumnMapping

    Provides preconfigured columns mappings that can be used with GoogleSheets.

    Inheritance
    object
    ColumnMapping
    Namespace: UnityEditor.Localization.Plugins.Google.Columns
    Assembly: Unity.Localization.Editor.dll
    Syntax
    public static class ColumnMapping

    Methods

    Name Description
    AddLocaleMappings(IList<SheetColumn>)

    Creates a LocaleColumn for any project Locale that is missing from the columns.

    CreateDefaultMapping()

    Creates a KeyColumn at "A" and then a LocaleColumn for each Locale in the project, each mapped to a unique Column.

    CreateMappingsFromColumnNames(IList<string>, IList<string>)

    Creates columns by attempting to match to expected column names(case insensitive).
    The following names are checked:

    • keyKeyColumn
    • Project Locale's name, UnityEngine.Localization.LocaleIdentifier.ToString() or CodeLocaleColumn
    GetNextAvailableColumn(HashSet<int>)

    Returns the next available sheet column.

    GetNextAvailableColumn(IList<SheetColumn>)

    Returns the next available column name. For example if columns was using "A", "B", "D" then "C" would be returned.

    GetNextAvailableColumn(params string[])

    Returns the next available column name. For example if reservedColumns was "A", "B", "D" then "C" would be returned.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)