docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReportValues

    ReportValues<T>(T[])

    Report the values for this AsyncMetric. Calling this method will transition IsPending to false. ReportValues may only be called once per AsyncMetric.

    Declaration
    public void ReportValues<T>(T[] values)
    Parameters
    Type Name Description
    T[] values

    The values to report for the metric. These values will be converted to json.

    Type Parameters
    Name Description
    T

    The type of the values

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if values is null

    ReportValues(string)

    Report the values for this AsyncMetric. Calling this method will transition IsPending to false. ReportValues may only be called once per AsyncMetric.

    Declaration
    public void ReportValues(string valuesJsonArray)
    Parameters
    Type Name Description
    string valuesJsonArray

    A JSON array in string form.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if values is null

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)