Method WithNetworkSimulatorParameters
WithNetworkSimulatorParameters(ref NetworkSettings, float, float)
Sets the NetworkSimulatorParameter in the settings.
Declaration
public static ref NetworkSettings WithNetworkSimulatorParameters(this ref NetworkSettings settings, float receivePacketLossPercent = 0, float sendPacketLossPercent = 0)
Parameters
Type | Name | Description |
---|---|---|
NetworkSettings | settings | Settings to modify. |
float | receivePacketLossPercent | Percentage of received packets to drop. |
float | sendPacketLossPercent | Percentage of sent packets to drop. |
Returns
Type | Description |
---|---|
NetworkSettings | Settings structure with modified values. |