docs.unity.cn
    Show / Hide Table of Contents

    Class RequirePlatformSupportAttribute

    The RequirePlatformSupportAttribute attribute can be applied to test assemblies (will affect every test in the assembly), fixtures (will affect every test in the fixture), or to individual test methods.

    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[]

    The BuildTarget platform to run the test on.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 10, 2023