Unity.Multiplayer.Tools.NetworkSimulator.Runtime.NetworkSimulatorPresetAsset
ScriptableObject used to store the parameters to configure and simulate network conditions.
#
ImplementsINetworkSimulatorPreset
#
Namespace: System.Dynamic.ExpandoObject#
Assembly: Tools.dll#
Syntax#
Properties#
DescriptionOptional description of the configuration.
#
Declaration#
Property ValueType | Description |
---|---|
System.String |
#
NameNetwork simulation configuration name.
#
Declaration#
Property ValueType | Description |
---|---|
System.String |
#
PacketDelayMsValue for the delay between packet in milliseconds.
#
Declaration#
Property ValueType | Description |
---|---|
System.Int32 |
#
PacketJitterMsValue for the network jitter (variance) in milliseconds.
#
Declaration#
Property ValueType | Description |
---|---|
System.Int32 |
#
PacketLossIntervalValue for at which interval packet are dropped This value is a drop every X packet, not in time.
#
Declaration#
Property ValueType | Description |
---|---|
System.Int32 |
#
PacketLossPercentValue for the average percentage of packet are dropped.
#
Declaration#
Property ValueType | Description |
---|---|
System.Int32 |
#
Methods#
Create(String, String, Int32, Int32, Int32, Int32)Utility function to create a configuration at runtime.
#
Declaration#
ParametersType | Name | Description |
---|---|---|
System.String | name | Name of the configuration. |
System.String | description | Description of the configuration. |
System.Int32 | packetDelayMs | Value for the packet delay in milliseconds. |
System.Int32 | packetJitterMs | Value for the network jitter in milliseconds. |
System.Int32 | packetLossInterval | Value for the packet loss interval. |
System.Int32 | packetLossPercent | Value for the packet loss percentage. |
#
ReturnsType | Description |
---|---|
NetworkSimulatorPresetAsset | A valid simulation configuration. |
#
ImplementsINetworkSimulatorPreset