docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CliArgumentsCheck

    Inheritance
    object
    CliArgumentsCheck
    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 static class CliArgumentsCheck

    Methods

    CheckForConflictingEditorCliArgs(List<string>)

    Throw an error if multiples of the same type of CLI argument for forcing the Editor graphics API were passed.

    Declaration
    public static List<string> CheckForConflictingEditorCliArgs(List<string> cliArguments)
    Parameters
    Type Name Description
    List<string> cliArguments
    Returns
    Type Description
    List<string>

    CheckForConflictingPlayerCliArgs(List<string>, List<string>)

    Throw an error if multiple CLI argument for forcing different Player graphics APIs were passed.

    Declaration
    public static List<string> CheckForConflictingPlayerCliArgs(List<string> cliArguments, List<string> testSettings)
    Parameters
    Type Name Description
    List<string> cliArguments
    List<string> testSettings
    Returns
    Type Description
    List<string>

    CheckGfxApiAgainstArguments(List<string>, List<string>, GraphicsDeviceType?, GraphicsDeviceType?)

    Read the commandline arguments passed to the Editor, and if the argument is meant to run tests with a certain graphics API, confirm that this API was correctly switched to. In case of failure to do so, throw an error.

    Declaration
    public static void CheckGfxApiAgainstArguments(List<string> cliArguments, List<string> testSettings = null, GraphicsDeviceType? currentEditorGfxApi = null, GraphicsDeviceType? currentPlayerSettingsGfxApi = null)
    Parameters
    Type Name Description
    List<string> cliArguments
    List<string> testSettings
    GraphicsDeviceType? currentEditorGfxApi
    GraphicsDeviceType? currentPlayerSettingsGfxApi

    GetForceGfxApiArguments()

    Declaration
    public static List<GraphicsApiArguments> GetForceGfxApiArguments()
    Returns
    Type Description
    List<GraphicsApiArguments>

    GetGraphicsTestFrameworkArguments()

    Declaration
    public static List<GraphicsApiArguments> GetGraphicsTestFrameworkArguments()
    Returns
    Type Description
    List<GraphicsApiArguments>
    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)