docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UseGraphicsTestCasesAttribute

    Attribute to specify that a test should use graphics test cases.

    Inheritance
    object
    Attribute
    UseGraphicsTestCasesAttribute
    Inherited Members
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    [Obsolete("Use the SceneGraphicsTestAttribute(scenePaths) (where scenePaths is a list of direct paths to scenes or directories of scenes). Then change GraphicsTestCase to SceneGraphicsTestCase (which will provide testCase.ScenePath) instead.")]
    public class UseGraphicsTestCasesAttribute : Attribute
    Remarks

    This attribute is obsolete and will be removed in a future version. Use the SceneGraphicsTestAttribute(scenePaths) (where scenePaths is a list of direct paths to scenes or directories of scenes). Then change GraphicsTestCase to SceneGraphicsTestCase (which will provide testCase.ScenePath) instead.

    Constructors

    UseGraphicsTestCasesAttribute()

    Creates a new instance of the UseGraphicsTestCasesAttribute class.

    Declaration
    public UseGraphicsTestCasesAttribute()

    UseGraphicsTestCasesAttribute(string)

    Creates a new instance of the UseGraphicsTestCasesAttribute class.

    Declaration
    public UseGraphicsTestCasesAttribute(string referenceImagePath)
    Parameters
    Type Name Description
    string referenceImagePath

    The path to the reference image. This path is relative to the project folder and must be in a path that is indexed by the Unity Asset Database.

    Properties

    ColorSpace

    The current colorspace.

    Declaration
    [Obsolete("Use GraphicsTestPlatform.Current.ColorSpace instead.")]
    public static ColorSpace ColorSpace { get; }
    Property Value
    Type Description
    ColorSpace

    GraphicsDevice

    The current graphics device type.

    Declaration
    [Obsolete("Use GraphicsTestPlatform.Current.GraphicsDevice instead.")]
    public static GraphicsDeviceType GraphicsDevice { get; }
    Property Value
    Type Description
    GraphicsDeviceType

    LoadedXRDevice

    The current xr device.

    Declaration
    [Obsolete("Use GraphicsTestPlatform.Current.XrDevice instead.")]
    public static string LoadedXRDevice { get; }
    Property Value
    Type Description
    string

    Platform

    The current runtime platform.

    Declaration
    [Obsolete("Use GraphicsTestPlatform.Current.Platform instead.")]
    public static RuntimePlatform Platform { get; }
    Property Value
    Type Description
    RuntimePlatform
    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)