docs.unity.cn
    Show / Hide Table of Contents

    Class PostBuildCleanupAttribute

    PostBuildCleanup attributes run if the respective test or test class is in the current test run. The test is included either by running all tests or setting a filter that includes the test. If multiple tests reference the same pre-built setup or post-build cleanup, then it only runs once.

    Inheritance
    Object
    Attribute
    PostBuildCleanupAttribute
    Namespace: UnityEngine.TestTools
    Syntax
    [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
    public class PostBuildCleanupAttribute : Attribute, _Attribute

    Constructors

    PostBuildCleanupAttribute(String)

    Initializes and returns an instance of PostBuildCleanupAttribute by class name.

    Declaration
    public PostBuildCleanupAttribute(string targetClassName)
    Parameters
    Type Name Description
    String targetClassName

    The name of the target class.

    PostBuildCleanupAttribute(Type)

    Initializes and returns an instance of PostBuildCleanupAttribute by type.

    Declaration
    public PostBuildCleanupAttribute(Type targetClass)
    Parameters
    Type Name Description
    Type targetClass

    The type of the target class.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, July 19, 2022
    Terms of use