docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create(string, float, float, EventCollectionDelegate)

    Create a continuous event at a particular frequency, aggregated over a period.

    Declaration
    public static ContinuousEvents.Event Create(string name, float interval, float period, ContinuousEvents.EventCollectionDelegate collector)
    Parameters
    Type Name Description
    string name

    The name of the event.

    float interval

    The interval in which to collect the metric, in seconds.

    float period

    The aggregation period in seconds.

    ContinuousEvents.EventCollectionDelegate collector

    A delegate to collect the metric.

    Returns
    Type Description
    ContinuousEvents.Event

    A newly constructed Event instance.

    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)