Class StringTable | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class StringTable

    Inheritance
    System.Object
    LocalizedTable
    StringTableBase
    StringTable
    Inherited Members
    StringTableBase.PluralHandler
    StringTableBase.GetLocalizedString(String)
    StringTableBase.GetLocalizedPluralString(String, Int32)
    LocalizedTable.LocaleIdentifier
    LocalizedTable.TableName
    LocalizedTable.Keys
    LocalizedTable.ToString()
    Namespace: UnityEngine.Localization
    Syntax
    public class StringTable : StringTableBase

    Methods

    AddEntry(String)

    Declaration
    public StringTableEntry AddEntry(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    StringTableEntry

    AddEntry(UInt32)

    Declaration
    public StringTableEntry AddEntry(uint keyId)
    Parameters
    Type Name Description
    System.UInt32 keyId
    Returns
    Type Description
    StringTableEntry

    GetEntry(String)

    Declaration
    public StringTableEntry GetEntry(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    StringTableEntry

    GetEntry(UInt32)

    Declaration
    public StringTableEntry GetEntry(uint keyId)
    Parameters
    Type Name Description
    System.UInt32 keyId
    Returns
    Type Description
    StringTableEntry

    GetLocalizedPluralString(UInt32, Int32)

    Gets the localized plural string using the PluralHandler.

    Declaration
    public override string GetLocalizedPluralString(uint keyId, int n)
    Parameters
    Type Name Description
    System.UInt32 keyId

    Key ID from KeyDatabase for the original singular form.

    System.Int32 n

    Plural amount

    Returns
    Type Description
    System.String

    The localized plural string. E.G '{0} files removed' or null if one can not be found.

    Overrides
    StringTableBase.GetLocalizedPluralString(UInt32, Int32)

    GetLocalizedString(UInt32)

    Returns the localized version of the string or null if one can not be found.

    Declaration
    public override string GetLocalizedString(uint keyId)
    Parameters
    Type Name Description
    System.UInt32 keyId

    The id of the key, taken from the KeyDatabase.

    Returns
    Type Description
    System.String
    Overrides
    StringTableBase.GetLocalizedString(UInt32)
    Back to top
    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