Class SetupGraphicsTestCases | Graphics Tests Framework | 7.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class SetupGraphicsTestCases

    Test framework prebuild step to collect reference images for the current test run and prepare them for use in the player. Will also build Lightmaps for specially labelled scenes.

    Inheritance
    Object
    SetupGraphicsTestCases
    Namespace: UnityEditor.TestTools.Graphics
    Syntax
    public static class SetupGraphicsTestCases

    Methods

    IsSceneAssetSelected()

    Declaration
    public static bool IsSceneAssetSelected()
    Returns
    Type Description
    Boolean

    LabelSceneForBake()

    Declaration
    [MenuItem("Assets/Tests/Toggle Scene for Bake")]
    public static void LabelSceneForBake()

    LabelSceneForBake_Test()

    Declaration
    [MenuItem("Assets/Tests/Toggle Scene for Bake", true)]
    public static bool LabelSceneForBake_Test()
    Returns
    Type Description
    Boolean

    SetGameViewSize(Int32, Int32)

    Set the Game View size to match the desired width and height at runtime

    Declaration
    public static void SetGameViewSize(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height

    Setup(String, String)

    Declaration
    public static void Setup(string rootImageTemplatePath = null, string imageResultsPath = "")
    Parameters
    Type Name Description
    String rootImageTemplatePath
    String imageResultsPath
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023