docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace UnityEditor.TestTools.Graphics

    Classes

    EditorWindowCapture

    Capture the current scene view into a Texture2D for use in ImageAssert tests.

    EditorWindowCaptureSettings

    Settings for capturing an EditorWindow.

    GameViewSize

    Utility class to manage the Game View size

    ImageStatsEventArgs

    Event arguments for the OnStatsReceived event. Contains the test name and the metrics for the reference image optimization. This event is triggered when the optimization process provides statistics about the reference images.

    OptimizationResult

    Represents the result of an image optimization process. This class encapsulates the outcome of optimizing reference images, including the time taken, the number of comparisons made, and the status of the optimization. It also includes lists of deleted and moved files as part of the optimization process.

    ReferenceImageMetrics

    Represents metrics for reference images used in graphics tests.

    ReferenceImageOptimizer

    The ReferenceImageOptimizer class is responsible for optimizing reference images in Unity projects. It allows you to filter images, compare them, and remove duplicates. It uses a texture comparison algorithm to determine the similarity between images and can move images to a base folder for better organization. The optimizer runs asynchronously and provides progress updates and statistics about the optimization process. It also provides events to notify when statistics are gathered and when the optimization is complete.

    ResultsUtility

    Utility class for extracting images from the TestResults.xml file. This class is used to extract images from the test results and save them to the specified directory.

    SceneViewCaptureSettings

    Settings for capturing a SceneView.

    SetupGraphicsTestCases

    This class is no longer needed. The setup is done automatically. If you wish to override the default settings, use the GraphicsTestBuildSettings asset instead. You can turn off automatic builds through the asset and control the flow yourself using GraphicsTestBuilder.Build(). If you wish to have custom pre-build steps, use one or more GraphicsPrebuildSetupAttribute.

    ShaderVariantList

    A list of shader variants. This is used to store the shader variants that are used in the graphics tests.

    ShaderVariantList.ComputeVariantList

    A list of shader variants for a specific compute shader.

    ShaderVariantList.Settings

    Settings for the shader variant list.

    ShaderVariantList.VariantList

    A list of shader variants for a specific shader.

    Structs

    ShaderVariantList.SerializedComputeShaderVariant

    A serialized compute shader variant.

    ShaderVariantList.SerializedShaderVariant

    A serialized shader variant.

    Enums

    OptimizationStatus

    Represents the status of an optimization process. This enumeration defines various states that can occur during the optimization of reference images, including whether the optimization was successful, encountered an error, was cancelled, or is currently running. It is used to provide feedback on the outcome of the optimization process, allowing users to understand the state of the optimization and take appropriate actions based on the status. The values in this enumeration can be used to track the progress of the optimization and handle different scenarios that may arise during the optimization workflow.

    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)