docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReportMetric

    ReportMetric<T>(MetricDefinition, T[])

    Report a metric not associated with any sensor or annotation.

    Declaration
    public static void ReportMetric<T>(MetricDefinition metricDefinition, T[] values)
    Parameters
    Type Name Description
    MetricDefinition metricDefinition

    The MetricDefinition associated with this metric. RegisterMetricDefinition(string, string, Guid)

    T[] values

    An array to be converted to json and put in the "values" field of the metric

    Type Parameters
    Name Description
    T

    The type of the values array

    ReportMetric(MetricDefinition, string)

    Report a metric not associated with any sensor or annotation.

    Declaration
    public static void ReportMetric(MetricDefinition metricDefinition, string valuesJsonArray)
    Parameters
    Type Name Description
    MetricDefinition metricDefinition

    The MetricDefinition associated with this metric. RegisterMetricDefinition(string, string, Guid)

    string valuesJsonArray

    A string-based JSON array to be placed in the "values" field of the metric

    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)