docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class 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.

    Inheritance
    object
    SetupGraphicsTestCases
    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
    Assembly: UnityEditor.TestTools.Graphics.dll
    Syntax
    public class SetupGraphicsTestCases

    Methods

    SetGameViewSize(int, int)

    Set the game view size.

    Declaration
    [Obsolete("This method has been moved. (UnityUpgradable) -> GameViewSize.SetGameViewSize(*)")]
    public static void SetGameViewSize(int w, int h)
    Parameters
    Type Name Description
    int w

    The width of the game view.

    int h

    The height of the game view.

    Remarks

    This method has been moved to the GameViewSize class.

    Setup(string, string, bool, RuntimePlatform)

    Setup the graphics test cases for the current context.

    Declaration
    [Obsolete("This 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.")]
    public static void Setup(string rootImageTemplatePath = "", string imageResultsPath = "", bool useCustomRuntimePlatform = false, RuntimePlatform customRuntimePlatform = RuntimePlatform.WindowsPlayer)
    Parameters
    Type Name Description
    string rootImageTemplatePath

    The path to the root image template.

    string imageResultsPath

    The path to the image results.

    bool useCustomRuntimePlatform

    Whether to use a custom runtime platform.

    RuntimePlatform customRuntimePlatform

    The custom runtime platform to use.

    Remarks

    This method 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.

    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)