docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License
Show / Hide Table of Contents
    • AddCollectorMenuAttribute
  • Unity.Simulation
    • AggregatedSample
    • AggregationEvent
    • ArrayCast
    • ArrayUtilities
    • AsyncRequest
    • AsyncRequest.ExecutionContext
    • AsyncRequest.Result
    • AsyncRequest.State
    • AsyncRequest<T>
    • BaseDataConsumer<T>
    • BaseDataConsumer<T>.Uploadable
    • Category
    • ChunkedStream
    • ChunkedUnityLog
    • CollectorBase
    • CollectorBase.ConsumeCollectorReport
    • CollectorElement
    • CollectorsBaseEditor
    • CollectorsList
    • Configuration
    • Configuration.SimulationConfiguration
    • ContentType
    • ContinuousEvents
    • ContinuousEvents.EventCollectionDelegate
    • ContinuousEvents.EventDispatchDelegate
    • CoreProfilerUtils
    • CounterEvent
    • CounterEventData
    • DXChunkedStream
    • DXChunkedUnityLog
    • DXFile
    • DXFormat
    • DXManager
    • DXTimeLogger
    • DataCapturePaths
    • DirectoryNameComponent
    • Dispatcher
    • EventBase
    • ExecUtility
    • ExitPlaymode
    • ExtensionNameComponent
    • FileNameComponent
    • FileProducer
    • Format
    • FrameCountCondition
    • FrameLimit
    • FrameNumberNameComponent
    • ICondition
    • IDataProduced
    • IGlobalProfilerDataDispatcher
    • IgnoreCollectorAttribute
    • LabelNameComponent
    • LambdaJob
    • LambdaJob.DelegateType
    • Log
    • Log.Level
    • Manager
    • Manager.NotificationDelegate
    • Manager.TickDelegate
    • NameComponent
    • NameGenerator
    • Options
    • PackageImportTests
    • PathUtility
    • PerfStatsManager
    • PlayerResolution
    • PlayerResolutionSettings
    • ProfilerManager
    • ProfilerProperties
    • ProfilerReport
    • ProfilerSamplingEvent
    • ReportingUtils
    • Sample
    • SampleProfilerCollector
    • SequenceNameComponent
    • SequencedPathName
    • SignedURLDataConsumer
    • SimSecondsCondition
    • SimulationProfiler
    • SimulationProfilerBase
    • SimulationProfilerEditor
    • TestUtility
    • ThreadUtility
    • TimeLimit
    • TimeLogger
    • TimeScale
    • TimeScaleEditor
    • TimeUtility
    • Timer
    • TimerSource
    • TimestampNameComponent
    • WallSecondsCondition

Class AggregationEvent

Event class which contains the aggregated data.

Inheritance
object
EventBase
AggregationEvent
Inherited Members
EventBase.dispatchDelegate
EventBase.collector
EventBase.eventName
EventBase.allowMultipledEventsOfType
EventBase.resetOnEachSampleCollection
EventBase.IsMultipleEventsInstancesAllowed()
EventBase.Update(float)
EventBase._elapsedInterval
EventBase._elapsedPeriod
EventBase._interval
EventBase._period
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Core.dll
Syntax
[Serializable]
public class AggregationEvent : EventBase

Constructors

AggregationEvent(string, float, EventCollectionDelegate, bool)

Constucts an Event that collects a metric each interval and aggregates over a period.

Declaration
public AggregationEvent(string eventName, float interval, ContinuousEvents.EventCollectionDelegate collector = null, bool resetOnEachSample = true)
Parameters
Type Name Description
string eventName

The name of the event.

float interval

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

ContinuousEvents.EventCollectionDelegate collector

A delegate to collect the metric.

bool resetOnEachSample

Fields

max

The max value collected over the aggregation period.

Declaration
public double max
Field Value
Type Description
double

mean

The mean value collected over the aggregation period.

Declaration
public double mean
Field Value
Type Description
double

min

The min value collected over the aggregation period.

Declaration
public double min
Field Value
Type Description
double

variance

The variance of the values collected over the aggregation period.

Declaration
public double variance
Field Value
Type Description
double

Methods

IngestValue(double)

Override this method to provide implementation for ingesting the value to perform some aggregation.

Declaration
public override void IngestValue(double value)
Parameters
Type Name Description
double value

Value ingested from the data source.

Overrides
EventBase.IngestValue(double)
Exceptions
Type Condition
NotImplementedException

Reset()

Implement this method to override the reset logic for the event before each sample capture.

Declaration
public override void Reset()
Overrides
EventBase.Reset()
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