docs.unity3d.com
Search Results for

    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
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.TestTools.Graphics
    Assembly: solution.dll
    Syntax
    public static class SetupGraphicsTestCases

    Methods

    IsSceneAssetSelected()

    Declaration
    public static bool IsSceneAssetSelected()
    Returns
    Type Description
    bool

    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
    bool

    SetGameViewSize(int, int)

    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
    int width
    int height

    Setup(string, string, bool, RuntimePlatform)

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