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. |
Properties
SetupIdentity
Deduplication key for setup actions; setups with equal identity run once. Defaults to the attribute type. Override when one attribute type is applied with distinct configurations that must each run.
Declaration
protected virtual object SetupIdentity { get; }
Property Value
| Type | Description |
|---|---|
| object |
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.