docs.unity.cn
    Show / Hide Table of Contents

    Class PreservedValuesAttribute

    Like the ValuesAttribute it is used to provide literal arguments for an individual parameter of a test. It has the Preserve attribute added, allowing it to persist in players build at a high stripping level.

    Inheritance
    Object
    PreservedValuesAttribute
    Namespace: UnityEngine.TestTools
    Syntax
    [Preserve]
    public class PreservedValuesAttribute : ValuesAttribute

    Constructors

    PreservedValuesAttribute(Object[])

    Construct the values attribute with a set of arguments.

    Declaration
    public PreservedValuesAttribute(params object[] args)
    Parameters
    Type Name Description
    Object[] args

    The set of arguments for the test parameter.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Monday, November 14, 2022
    Terms of use