docs.unity3d.com
    Show / Hide Table of Contents

    Class ContinuousEvents

    Continuous Events class for creating and updating events that measure some metric at a frequency and aggregate over a period.

    Inheritance
    Object
    ContinuousEvents
    Namespace: Unity.Simulation
    Syntax
    public static class ContinuousEvents

    Methods

    AddEvent(EventBase)

    Add an event to be measure according to its frequency.

    Declaration
    public static void AddEvent(EventBase e)
    Parameters
    Type Name Description
    EventBase e

    Create(String, Single, Single, ContinuousEvents.EventCollectionDelegate)

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

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

    The name of the event.

    Single interval

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

    Single period

    The aggregation period in seconds.

    ContinuousEvents.EventCollectionDelegate collector

    A delegate to collect the metric.

    Returns
    Type Description
    AggregationEvent

    A newly constructed Event instance.

    DefaultDispatchDelegate(AggregationEvent)

    The default dispatcher, which just logs to the console.

    Declaration
    public static void DefaultDispatchDelegate(AggregationEvent e)
    Parameters
    Type Name Description
    AggregationEvent e

    RemoveEvent(EventBase)

    Removes an event from being collected.

    Declaration
    public static void RemoveEvent(EventBase e)
    Parameters
    Type Name Description
    EventBase e
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023