Skip to main content

NetworkingProfiler

A class in Root.Township, Alta.Utilities.Profiling.NetworkTransportMetrics.

Singleton behaviour that holds connection simulator settings (delay and packet loss) for testing bad networks.

Constructors​

MemberWhat it is
NetworkingProfiler()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private ConnectionSimulatorConfiguration connectionConfigurationInspector values for in and out delay and packet loss.
private bool isUsingSimulatorSettingsBacking field for IsUsingSimulatorSettings.

Properties​

MemberWhat it is
bool IsUsingSimulatorSettings { get; set; }Whether the connection simulator settings should be applied. Can be set at runtime.
ConnectionSimulatorConfig SimulatorConfiguration { get; }Builds a UNET ConnectionSimulatorConfig from the inspector delay and packet loss values.