docs.unity.cn
    Show / Hide Table of Contents

    Class RequirePlatformSupportAttribute

    The RequirePlatformSupportAttribute attribute can be applied to test assemblies (affects every test in the assembly), fixtures (affects every test in the fixture), or to individual test methods. Tests under the scope of this attrbitue require Player build support for the specified platforms in order to run.

    Inheritance
    Object
    RequirePlatformSupportAttribute
    Namespace: UnityEditor.TestTools
    Syntax
    [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
    public class RequirePlatformSupportAttribute : NUnitAttribute, IApplyToTest

    Constructors

    RequirePlatformSupportAttribute(BuildTarget[])

    Initializes and returns an instance of RequirePlatformSupportAttribute.

    Declaration
    public RequirePlatformSupportAttribute(params BuildTarget[] platforms)
    Parameters
    Type Name Description
    BuildTarget[] platforms

    The BuildTarget platform to run the test on.

    Properties

    platforms

    The build target platform, see BuildTarget.

    Declaration
    public BuildTarget[] platforms { get; }
    Property Value
    Type Description
    BuildTarget[]
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Monday, November 14, 2022
    Terms of use