docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RuntimeGraphicsTestCaseProvider

    Inheritance
    object
    RuntimeGraphicsTestCaseProvider
    Implements
    IGraphicsTestCaseProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public class RuntimeGraphicsTestCaseProvider : IGraphicsTestCaseProvider

    Fields

    BaseRefImageLoadedMsg

    Declaration
    public static readonly string BaseRefImageLoadedMsg
    Field Value
    Type Description
    string

    RefImageLoadedMsg

    Declaration
    public static readonly string RefImageLoadedMsg
    Field Value
    Type Description
    string

    ReferenceImagesBaseBundleName

    Declaration
    public static readonly string ReferenceImagesBaseBundleName
    Field Value
    Type Description
    string

    ReferenceImagesBundlePrefix

    Declaration
    public static readonly string ReferenceImagesBundlePrefix
    Field Value
    Type Description
    string

    Properties

    BaseReferenceImagesBundle

    Declaration
    public static AssetBundle BaseReferenceImagesBundle { get; set; }
    Property Value
    Type Description
    AssetBundle

    ReferenceImagesBundle

    Declaration
    public static AssetBundle ReferenceImagesBundle { get; set; }
    Property Value
    Type Description
    AssetBundle

    Methods

    GetScenePaths()

    Declaration
    public static string[] GetScenePaths()
    Returns
    Type Description
    string[]

    GetTestCaseFromPath(string)

    Retrieve a single test case from scene path.

    Declaration
    public GraphicsTestCase GetTestCaseFromPath(string scenePath)
    Parameters
    Type Name Description
    string scenePath
    Returns
    Type Description
    GraphicsTestCase

    GetTestCaseFromPath(string, RenderPipelineAsset)

    Declaration
    public GraphicsTestCase GetTestCaseFromPath(string scenePath, RenderPipelineAsset srpAsset)
    Parameters
    Type Name Description
    string scenePath
    RenderPipelineAsset srpAsset
    Returns
    Type Description
    GraphicsTestCase

    GetTestCases()

    This method generates a list of GraphicsTestCases based on the scenes in the project. For non-WebGL and non-Android platforms, this method also loads the ReferenceImages and BaseReferenceImages AssetBundles synchronously, then uses them to associate reference images with each test case. For WebGL and Android platforms, this method does not load the AssetBundles or associate reference images the test case, instead deferring these two steps to the user to perform in the UnitySetUp using the EnsureGetReferenceImageBundlesAsync and in the test method using AssociateReferenceImageWithTest.

    Declaration
    public IEnumerable<GraphicsTestCase> GetTestCases()
    Returns
    Type Description
    IEnumerable<GraphicsTestCase>

    Implements

    IGraphicsTestCaseProvider
    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)