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

    Class LocalizationAddressableSettings

    Inheritance
    System.Object
    LocalizationAddressableSettings
    Namespace: UnityEditor.Localization
    Syntax
    public class LocalizationAddressableSettings

    Fields

    AssetTableGroupName

    Declaration
    public const string AssetTableGroupName = "Localization-AssetTables"
    Field Value
    Type Description
    System.String

    AssetTableTypeGroupName

    Declaration
    public const string AssetTableTypeGroupName = "Localization-Assets-{0}"
    Field Value
    Type Description
    System.String

    LocaleGroupName

    Declaration
    public const string LocaleGroupName = "Localization-Locales"
    Field Value
    Type Description
    System.String

    StringTableGroupName

    Declaration
    public const string StringTableGroupName = "Localization-StringTables"
    Field Value
    Type Description
    System.String

    Methods

    AddAssetToTable<TObject>(AddressableAssetTableT<TObject>, String, TObject)

    Add a localized asset to the asset table. This function will ensure the localization system adds the asset to the Addressables system and sets the asset up for use.

    Declaration
    public static void AddAssetToTable<TObject>(AddressableAssetTableT<TObject> table, string key, TObject asset)where TObject : Object
    Parameters
    Type Name Description
    AddressableAssetTableT<TObject> table
    System.String key
    TObject asset
    Type Parameters
    Name Description
    TObject

    AddAssetToTableInternal<TObject>(AddressableAssetTableT<TObject>, String, TObject)

    Declaration
    protected virtual void AddAssetToTableInternal<TObject>(AddressableAssetTableT<TObject> table, string key, TObject asset)where TObject : Object
    Parameters
    Type Name Description
    AddressableAssetTableT<TObject> table
    System.String key
    TObject asset
    Type Parameters
    Name Description
    TObject

    AddLocale(Locale)

    Add the Locale to the Addressables system, so that it can be used by the Localization system during runtime.

    Declaration
    public static bool AddLocale(Locale locale)
    Parameters
    Type Name Description
    Locale locale
    Returns
    Type Description
    System.Boolean

    True if the locale was added; false if it was not such as when the locale is already added or the operation was canceled when creating the settings asset.

    AddLocaleInternal(Locale)

    Declaration
    protected virtual bool AddLocaleInternal(Locale locale)
    Parameters
    Type Name Description
    Locale locale
    Returns
    Type Description
    System.Boolean

    AddOrUpdateAssetTable(LocalizedTable)

    Add or update the Addressables data for the table. Ensures the table is in the correct group and has all the required labels.

    Declaration
    public static void AddOrUpdateAssetTable(LocalizedTable table)
    Parameters
    Type Name Description
    LocalizedTable table

    AddOrUpdateAssetTableInternal(LocalizedTable)

    Declaration
    protected virtual void AddOrUpdateAssetTableInternal(LocalizedTable table)
    Parameters
    Type Name Description
    LocalizedTable table

    FindUniqueAssetAddress(String)

    Declaration
    protected virtual string FindUniqueAssetAddress(string address)
    Parameters
    Type Name Description
    System.String address
    Returns
    Type Description
    System.String

    GetGroup(AddressableAssetSettings, String, Boolean)

    Declaration
    protected virtual AddressableAssetGroup GetGroup(AddressableAssetSettings settings, string groupName, bool create = false)
    Parameters
    Type Name Description
    AddressableAssetSettings settings
    System.String groupName
    System.Boolean create
    Returns
    Type Description
    AddressableAssetGroup

    GetLocales()

    Returns all locales that are part of the Addressables system.

    Declaration
    public static List<Locale> GetLocales()
    Returns
    Type Description
    List<Locale>

    GetLocalesInternal()

    Declaration
    protected virtual List<Locale> GetLocalesInternal()
    Returns
    Type Description
    List<Locale>

    RemoveAssetFromTable<TObject>(AddressableAssetTableT<TObject>, String, TObject)

    Remove the asset mapping from the table and also cleanup the Addressables if necessary.

    Declaration
    public static void RemoveAssetFromTable<TObject>(AddressableAssetTableT<TObject> table, string key, TObject asset)where TObject : Object
    Parameters
    Type Name Description
    AddressableAssetTableT<TObject> table
    System.String key
    TObject asset
    Type Parameters
    Name Description
    TObject

    RemoveAssetFromTableInternal<TObject>(AddressableAssetTableT<TObject>, String, TObject)

    Declaration
    protected virtual void RemoveAssetFromTableInternal<TObject>(AddressableAssetTableT<TObject> table, string key, TObject asset)where TObject : Object
    Parameters
    Type Name Description
    AddressableAssetTableT<TObject> table
    System.String key
    TObject asset
    Type Parameters
    Name Description
    TObject

    RemoveLocale(Locale)

    Removes the locale from the Addressables system.

    Declaration
    public static bool RemoveLocale(Locale locale)
    Parameters
    Type Name Description
    Locale locale
    Returns
    Type Description
    System.Boolean

    True if success or false if the locale could not be removed, such as if it was not added.

    RemoveLocaleInternal(Locale)

    Declaration
    protected virtual bool RemoveLocaleInternal(Locale locale)
    Parameters
    Type Name Description
    Locale locale
    Returns
    Type Description
    System.Boolean
    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