LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ConnectionSimulatorConfig Constructor

public ConnectionSimulatorConfig(int outMinDelay, int outAvgDelay, int inMinDelay, int inAvgDelay, float packetLossPercentage);

Parameters

outMinDelayMinimal simulation delay for outgoing traffic in ms.
outAvgDelayAverage simulation delay for outgoing traffic in ms.
inMinDelayMinimal simulation delay for incoming traffic in ms.
inAvgDelayAverage simulation delay for incoming traffic in ms.
packetLossPercentageProbability of packet loss 0 <= p <= 1.

Description

Will create object describing network simulation parameters.