docs.unity3d.com
Search Results for

    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
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    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

    The event to add.

    Create(string, float, float, 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.

    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
    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

    The event to log.

    RemoveEvent(EventBase)

    Removes an event from being collected.

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

    The event to remove.

    In This Article
    Back to top
    Copyright © 2026 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)