docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GraphicsTestCase

    Represents one automatically-generated graphics test case.

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

    Constructors

    GraphicsTestCase(string, RenderPipelineAsset)

    Declaration
    public GraphicsTestCase(string scenePath, RenderPipelineAsset srpAsset = null)
    Parameters
    Type Name Description
    string scenePath
    RenderPipelineAsset srpAsset

    GraphicsTestCase(string, CodeBasedGraphicsTestAttribute, Texture2D, RenderPipelineAsset, string)

    Declaration
    public GraphicsTestCase(string name, CodeBasedGraphicsTestAttribute codeBasedGraphicsTestAttrib, Texture2D referenceImage, RenderPipelineAsset srpAsset = null, string referenceImagePathLog = null)
    Parameters
    Type Name Description
    string name
    CodeBasedGraphicsTestAttribute codeBasedGraphicsTestAttrib
    Texture2D referenceImage
    RenderPipelineAsset srpAsset
    string referenceImagePathLog

    GraphicsTestCase(string, Texture2D, RenderPipelineAsset, string)

    Declaration
    public GraphicsTestCase(string scenePath, Texture2D referenceImage, RenderPipelineAsset srpAsset = null, string referenceImagePathLog = null)
    Parameters
    Type Name Description
    string scenePath
    Texture2D referenceImage
    RenderPipelineAsset srpAsset
    string referenceImagePathLog

    Properties

    CodeBasedGraphicsTestAttribute

    The associated CodeBasedGraphicsTestAttribute if the test case is code based.

    Declaration
    public CodeBasedGraphicsTestAttribute CodeBasedGraphicsTestAttribute { get; }
    Property Value
    Type Description
    CodeBasedGraphicsTestAttribute

    Name

    The name of the test to be displayed in the TestRunner window and the Graphics Test Results window.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    ReferenceImage

    The reference image that represents the expected output for this test case.

    Declaration
    public Texture2D ReferenceImage { get; set; }
    Property Value
    Type Description
    Texture2D

    ReferenceImagePathLog

    The log message that communicates the path to the reference image of this test case.

    Declaration
    public string ReferenceImagePathLog { get; set; }
    Property Value
    Type Description
    string

    SRPAsset

    The Scriptable Render Pipeline Asset used for this test case.

    Declaration
    public RenderPipelineAsset SRPAsset { get; }
    Property Value
    Type Description
    RenderPipelineAsset

    ScenePath

    The path to the scene to be used for this test case.

    Declaration
    public string ScenePath { get; }
    Property Value
    Type Description
    string

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    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)