![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetworkMetricsMutators.h>
Inheritance diagram for FNetworkMetricsMutator:Public Types | |
| using | FValueVariant = TVariant< float, int64 > |
Public Member Functions | |
| virtual | ~FNetworkMetricsMutator ()=default |
| FName | GetName () const |
Public Attributes | |
| virtual void virtual ProcessFrame(const UE::Net::FNetworkMetricSnapshot &Snapshot) PURE_VIRTUAL(FNetworkMetricsMutator void virtual Reset() PURE_VIRTUAL(FNetworkMetricsMutator FValueVariant | GetValue () const PURE_VIRTUAL(FNetworkMetricsMutator |
| virtual TArrayView< const FName > | GetAllMetricNames () const PURE_VIRTUAL(FNetworkMetricsMutator |
A metrics mutator is a component of a UNetworkMetricsBaseListener that receices a metrics snapshot every frame. This enables a mutator to accumulate and/or transform (possibly multiple) input metrics into a single output value over the reporting interval of its owning listener. For example, FNetworkMetricsMutatorAvg allows a listener to report the average of a metric over a whole reporting interval.
|
virtualdefault |
| FName FNetworkMetricsMutator::GetName | ( | ) | const |
Returns the name of this mutator. Independent of metric names in the database. Either NameOverride if set, otherwise returns GetNameInternal().
| virtual TArrayView<const FName> FNetworkMetricsMutator::GetAllMetricNames() const PURE_VIRTUAL(FNetworkMetricsMutator |
Returns a list of all metrics used by this mutator.
| virtual void virtual ProcessFrame (const UE::Net::FNetworkMetricSnapshot& Snapshot) PURE_VIRTUAL(FNetworkMetricsMutator void virtual Reset () PURE_VIRTUAL(FNetworkMetricsMutator FValueVariant FNetworkMetricsMutator::GetValue() const PURE_VIRTUAL(FNetworkMetricsMutator |
Called every frame with a snapshot containing this mutator's metrics. Clears internal data, typically used after a listener reports its metrics. Returns this mutator's current computed value