docs.unity3d.com
    Show / Hide Table of Contents

    Class CounterEvent

    Inheritance
    Object
    EventBase
    CounterEvent
    Inherited Members
    EventBase.dispatchDelegate
    EventBase.collector
    EventBase.eventName
    EventBase.allowMultipledEventsOfType
    EventBase.resetOnEachSampleCollection
    EventBase.IsMultipleEventsInstancesAllowed()
    EventBase.Reset()
    EventBase.Update(Single)
    EventBase._elapsedInterval
    EventBase._elapsedPeriod
    EventBase._interval
    EventBase._period
    Namespace: Unity.Simulation
    Syntax
    [Serializable]
    public class CounterEvent : EventBase

    Constructors

    CounterEvent(String, Single, ContinuousEvents.EventCollectionDelegate)

    Declaration
    public CounterEvent(string eventName, float interval, ContinuousEvents.EventCollectionDelegate collector = null)
    Parameters
    Type Name Description
    String eventName
    Single interval
    ContinuousEvents.EventCollectionDelegate collector

    Fields

    CounterStore

    Declaration
    public ConcurrentDictionary<string, CounterEventData> CounterStore
    Field Value
    Type Description
    ConcurrentDictionary<String, CounterEventData>

    Methods

    IncrementCount(String)

    Increment the count of the function call.

    Declaration
    public void IncrementCount(string functionName)
    Parameters
    Type Name Description
    String functionName

    IngestValue(Double)

    Declaration
    public override void IngestValue(double value)
    Parameters
    Type Name Description
    Double value
    Overrides
    EventBase.IngestValue(Double)
    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