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

    Class FakedLocalizationEditorSettings

    Overrides the Localization Editor Settings so tests can be run that wont interfere with an existing project. Ignores all Addressable operations.

    Inheritance
    System.Object
    LocalizationEditorSettings
    FakedLocalizationEditorSettings
    Inherited Members
    LocalizationEditorSettings.OnModification
    LocalizationEditorSettings.ActiveLocalizationSettings
    LocalizationEditorSettings.AddLocale(Locale)
    LocalizationEditorSettings.RemoveLocale(Locale)
    LocalizationEditorSettings.GetLocales()
    LocalizationEditorSettings.AddAssetToTable<TObject>(AddressableAssetTableT<TObject>, UInt32, TObject)
    LocalizationEditorSettings.RemoveAssetFromTable<TObject>(AddressableAssetTableT<TObject>, UInt32, TObject)
    LocalizationEditorSettings.RemoveAssetFromTable(AddressableAssetTable, UInt32, String)
    LocalizationEditorSettings.AddOrUpdateTable(LocalizedTable)
    LocalizationEditorSettings.RemoveTable(LocalizedTable)
    LocalizationEditorSettings.GetAssetTables<TLocalizedTable>()
    LocalizationEditorSettings.GetAllAssetTables()
    LocalizationEditorSettings.GetAssetTablesCollection<TLocalizedTable>()
    LocalizationEditorSettings.CreateAssetTable(Locale, KeyDatabase, String, Type, String)
    LocalizationEditorSettings.SendEvent(LocalizationEditorSettings.ModificationEvent, Object)
    LocalizationEditorSettings.ActiveLocalizationSettingsInternal
    LocalizationEditorSettings.GetGroup(AddressableAssetSettings, String, Boolean)
    LocalizationEditorSettings.FindUniqueAssetAddress(String)
    LocalizationEditorSettings.AddLocaleInternal(Locale)
    LocalizationEditorSettings.RemoveLocaleInternal(Locale)
    LocalizationEditorSettings.GetLocalesInternal()
    LocalizationEditorSettings.FormatAssetTableName(LocaleIdentifier)
    LocalizationEditorSettings.AddAssetToTableInternal<TObject>(AddressableAssetTableT<TObject>, UInt32, TObject)
    LocalizationEditorSettings.RemoveAssetFromTableInternal(AddressableAssetTable, UInt32, String)
    LocalizationEditorSettings.RemoveAssetFromTableInternal<TObject>(AddressableAssetTableT<TObject>, UInt32, TObject)
    LocalizationEditorSettings.UpdateAssetGroup(AddressableAssetSettings, AddressableAssetEntry)
    LocalizationEditorSettings.RemoveTableInternal(LocalizedTable)
    LocalizationEditorSettings.GetAssetTablesCollectionInternal<TLocalizedTable>()
    LocalizationEditorSettings.CreateAssetTableFilePanelInternal(Locale, KeyDatabase, String, Type, String)
    LocalizationEditorSettings.CreateAssetTableInternal(Locale, KeyDatabase, String, Type, String)
    LocalizationEditorSettings.CreateAssetTablesFolderPanelInternal(List<Locale>, KeyDatabase, String, Type)
    LocalizationEditorSettings.CreateAssetTablesInternal(List<Locale>, KeyDatabase, String, Type, String, Boolean, Boolean)
    Namespace: UnityEditor.Localization.Tests
    Syntax
    public class FakedLocalizationEditorSettings : LocalizationEditorSettings

    Constructors

    FakedLocalizationEditorSettings()

    Declaration
    public FakedLocalizationEditorSettings()

    Properties

    AddOrUpdateTables

    Declaration
    public List<LocalizedTable> AddOrUpdateTables { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<LocalizedTable>

    CreatedKeyDatabases

    Declaration
    public List<KeyDatabase> CreatedKeyDatabases { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<KeyDatabase>

    CreatedTables

    Declaration
    public List<LocalizedTable> CreatedTables { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<LocalizedTable>

    Methods

    AddOrUpdateTableInternal(LocalizedTable)

    Declaration
    protected override void AddOrUpdateTableInternal(LocalizedTable table)
    Parameters
    Type Name Description
    LocalizedTable table
    Overrides
    LocalizationEditorSettings.AddOrUpdateTableInternal(LocalizedTable)

    CreateAsset(Object, String)

    Declaration
    protected override void CreateAsset(Object asset, string path)
    Parameters
    Type Name Description
    UnityEngine.Object asset
    System.String path
    Overrides
    LocalizationEditorSettings.CreateAsset(Object, String)

    GetAddressableAssetSettings(Boolean)

    Declaration
    protected override AddressableAssetSettings GetAddressableAssetSettings(bool create)
    Parameters
    Type Name Description
    System.Boolean create
    Returns
    Type Description
    AddressableAssetSettings
    Overrides
    LocalizationEditorSettings.GetAddressableAssetSettings(Boolean)

    GetAssetTablesInternal<TLocalizedTable>()

    Declaration
    protected override List<TLocalizedTable> GetAssetTablesInternal<TLocalizedTable>()
        where TLocalizedTable : LocalizedTable
    Returns
    Type Description
    System.Collections.Generic.List<TLocalizedTable>
    Type Parameters
    Name Description
    TLocalizedTable
    Overrides
    LocalizationEditorSettings.GetAssetTablesInternal<TLocalizedTable>()

    Teardown()

    Declaration
    public void Teardown()
    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