Class SetupGraphicsTestCases
This class is no longer needed. The setup is done automatically. If you wish to override the default settings, use the GraphicsTestBuildSettings asset instead. You can turn off automatic builds through the asset and control the flow yourself using GraphicsTestBuilder.Build(). If you wish to have custom pre-build steps, use one or more GraphicsPrebuildSetupAttribute.
Inherited Members
Namespace: UnityEditor.TestTools.Graphics
Assembly: UnityEditor.TestTools.Graphics.dll
Syntax
public class SetupGraphicsTestCases
Methods
SetGameViewSize(int, int)
Set the game view size.
Declaration
[Obsolete("This method has been moved. (UnityUpgradable) -> GameViewSize.SetGameViewSize(*)")]
public static void SetGameViewSize(int w, int h)
Parameters
| Type | Name | Description |
|---|---|---|
| int | w | The width of the game view. |
| int | h | The height of the game view. |
Remarks
This method has been moved to the GameViewSize class.
Setup(string, string, bool, RuntimePlatform)
Setup the graphics test cases for the current context.
Declaration
[Obsolete("This is no longer needed. The setup is done automatically. If you wish to override the default settings, use the GraphicsTestBuildSettings asset instead. You can turn off automatic builds through the asset and control the flow yourself using GraphicsTestBuilder.Build(). If you wish to have custom pre-build steps, use one or more GraphicsPrebuildSetupAttribute.")]
public static void Setup(string rootImageTemplatePath = "", string imageResultsPath = "", bool useCustomRuntimePlatform = false, RuntimePlatform customRuntimePlatform = RuntimePlatform.WindowsPlayer)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rootImageTemplatePath | The path to the root image template. |
| string | imageResultsPath | The path to the image results. |
| bool | useCustomRuntimePlatform | Whether to use a custom runtime platform. |
| RuntimePlatform | customRuntimePlatform | The custom runtime platform to use. |
Remarks
This method is no longer needed. The setup is done automatically. If you wish to override the default settings, use the GraphicsTestBuildSettings asset instead. You can turn off automatic builds through the asset and control the flow yourself using GraphicsTestBuilder.Build(). If you wish to have custom pre-build steps, use one or more GraphicsPrebuildSetupAttribute.