Class UseGraphicsTestCasesAttribute
Attribute to specify that a test should use graphics test cases.
Inherited Members
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 |