Unity.Multiplayer.Tools.NetworkSimulator.Runtime.NetworkSimulatorPreset
Preset containing the parameters to configure and simulate network conditions.
#
Inherited MembersObject.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
#
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 |
---|---|
NetworkSimulatorPreset | A valid simulation configuration. |
#
Equals(Object)#
Declaration#
ParametersType | Name | Description |
---|---|---|
System.Object | obj |
#
ReturnsType | Description |
---|---|
System.Boolean |
#
OverridesSystem.Object.Equals(System.Object)
#
Equals(NetworkSimulatorPreset)Determines whether the specified object is equal to the current object.
#
Declaration#
ParametersType | Name | Description |
---|---|---|
NetworkSimulatorPreset | other | The object to compare with the current object. |
#
ReturnsType | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
#
GetHashCode()#
Declaration#
ReturnsType | Description |
---|---|
System.Int32 |
#
OverridesSystem.Object.GetHashCode()
#
ToString()#
Declaration#
ReturnsType | Description |
---|---|
System.String |
#
OverridesSystem.Object.ToString()
#
ImplementsINetworkSimulatorPreset
System.IEquatable\<T>