Class GraphicsPrebuildSetupAttribute
Attribute to mark a method or class as a pre-build setup step for graphics tests. This attribute should be used on a test class or test method.
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public abstract class GraphicsPrebuildSetupAttribute : Attribute
Remarks
This attribute will be used to run setup actions before building the graphics test project. The setup actions will be run in the order they are defined. The order is used to determine the order in which the pre-build steps are run. Lower numbers are run first.
Constructors
GraphicsPrebuildSetupAttribute()
Creates a new instance of the GraphicsPrebuildSetupAttribute class.
Declaration
protected GraphicsPrebuildSetupAttribute()
GraphicsPrebuildSetupAttribute(int)
Creates a new instance of the GraphicsPrebuildSetupAttribute class.
Declaration
protected GraphicsPrebuildSetupAttribute(int order)
Parameters
| Type | Name | Description |
|---|---|---|
| int | order | The order in which to run the setup action. |
Methods
Setup()
Override this method to implement the setup action.
Declaration
protected abstract void Setup()
Remarks
This method will be called before building the graphics test project.