docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GraphicsTestBuilder

    Setup the graphics test cases for the current context.

    Inheritance
    object
    GraphicsTestBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.TestTools.Graphics.Builder
    Assembly: UnityEditor.TestTools.Graphics.dll
    Syntax
    public class GraphicsTestBuilder

    Properties

    BuildManager

    The build manager to use for building the graphics tests.

    Declaration
    public GraphicsTestBuildManager BuildManager { get; set; }
    Property Value
    Type Description
    GraphicsTestBuildManager
    Remarks

    If not set, the build manager will be created based on the current context.

    Platforms

    The nodes to build the graphics tests for.

    Declaration
    public IList<GraphicsTestPlatform> Platforms { get; set; }
    Property Value
    Type Description
    IList<GraphicsTestPlatform>

    Settings

    The settings to use for building the graphics tests.

    Declaration
    public GraphicsTestBuildSettings Settings { get; set; }
    Property Value
    Type Description
    GraphicsTestBuildSettings
    Remarks

    If not set, the default settings will be used.

    TestCases

    The test cases to build.

    Declaration
    public IList<GraphicsTestCase> TestCases { get; set; }
    Property Value
    Type Description
    IList<GraphicsTestCase>

    Methods

    Build()

    Build the graphics tests for the current context.

    Declaration
    public GraphicsTestBuildResult Build()
    Returns
    Type Description
    GraphicsTestBuildResult

    The result of the build.

    Remarks

    This method will build the graphics tests for the current context. If the build manager is not set, it will be created based on the current context.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the build manager is not set.

    Events

    OnTestBuilderFinished

    An event that is fired when the graphics test build is finished.

    Declaration
    public static event Action<GraphicsTestBuilder> OnTestBuilderFinished
    Event Type
    Type Description
    Action<GraphicsTestBuilder>
    In This Article
    Back to top
    Copyright © 2026 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)