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

    Class AddressableAssetTestBase

    Inheritance
    System.Object
    AddressableAssetTestBase
    AddressableTests
    ModificationEventTests
    Namespace: UnityEditor.Localization.Tests
    Syntax
    public class AddressableAssetTestBase

    Fields

    k_TestConfigFolder

    Declaration
    protected const string k_TestConfigFolder = "Assets/AddressableAssetsData_LocalizationTests"
    Field Value
    Type Description
    System.String

    k_TestConfigName

    Declaration
    protected const string k_TestConfigName = "AddressableAssetSettings.Localization.Tests"
    Field Value
    Type Description
    System.String

    m_AddressableSettings

    Declaration
    protected AddressableAssetSettings m_AddressableSettings
    Field Value
    Type Description
    AddressableAssetSettings

    m_LocalizationEditorSettings

    Declaration
    protected FakedAddressableLocalizationEditorSettings m_LocalizationEditorSettings
    Field Value
    Type Description
    FakedAddressableLocalizationEditorSettings

    Properties

    PersistSettings

    Declaration
    protected virtual bool PersistSettings { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    AllTableTypes()

    Declaration
    public static List<Type> AllTableTypes()
    Returns
    Type Description
    System.Collections.Generic.List<System.Type>

    Cleanup()

    Declaration
    public void Cleanup()

    CreateAsset(Object, String)

    Declaration
    protected static void CreateAsset(Object asset, string name)
    Parameters
    Type Name Description
    UnityEngine.Object asset
    System.String name

    CreateTestTexture(String)

    Declaration
    protected static Texture2D CreateTestTexture(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    Texture2D

    DeleteAsset(Object)

    Declaration
    protected static void DeleteAsset(Object asset)
    Parameters
    Type Name Description
    UnityEngine.Object asset

    FindAddressableAssetEntry(Object)

    Declaration
    protected AddressableAssetEntry FindAddressableAssetEntry(Object asset)
    Parameters
    Type Name Description
    UnityEngine.Object asset
    Returns
    Type Description
    AddressableAssetEntry

    GenerateSampleLanguages()

    Declaration
    protected static List<SystemLanguage> GenerateSampleLanguages()
    Returns
    Type Description
    System.Collections.Generic.List<SystemLanguage>

    Init()

    Declaration
    public void Init()

    OnCleanup()

    Declaration
    protected virtual void OnCleanup()

    OnInit()

    Declaration
    protected virtual void OnInit()

    VerifyAssetIsInAddressables(Object, String)

    Declaration
    protected void VerifyAssetIsInAddressables(Object asset, string message = "")
    Parameters
    Type Name Description
    UnityEngine.Object asset
    System.String message

    VerifyAssetIsNotInAddressables(Object, String)

    Declaration
    protected void VerifyAssetIsNotInAddressables(Object asset, string message = "")
    Parameters
    Type Name Description
    UnityEngine.Object asset
    System.String message
    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