Unity.Networking.Transport.Utilities.SimulatorUtility.Parameters
Configuration parameters for the simulator pipeline stage.
#
ImplementsINetworkParameter
#
Inherited MembersValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
#
Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
FuzzFactorUse the fuzz factor when you want to fuzz a packet. For every packet a random number generator is used to determine if the packet should have the internal bits flipped. A percentage of 5 means approximately every 20th packet will be fuzzed, and that each bit in the packet has a 5 percent chance to get flipped.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
FuzzOffsetUse the fuzz offset in conjunction with the fuzz factor, the fuzz offset will offset where we start flipping bits. This is useful if you want to only fuzz a part of the packet.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
MaxPacketCountThe maximum amount of packets the pipeline can keep track of. This used when a packet is delayed, the packet is stored in the pipeline processing buffer and can be later brought back.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
MaxPacketSizeThe maximum size of a packet which the simulator stores. If a packet exceeds this size it will bypass the simulator.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
Mode#
Declaration#
Field ValueType | Description |
---|---|
ApplyMode |
#
PacketDelayMsFixed delay to apply to all packets which pass through.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
PacketDropIntervalFixed interval to drop packets on. This is most suitable for tests where predictable behaviour is desired, every Xth packet will be dropped. If PacketDropInterval is 5 every 5th packet is dropped.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
PacketDropPercentage0 - 100, denotes the percentage of packets that will be dropped (i.e. deleted unprocessed). E.g. "5" means approximately every 20th packet will be dropped. RandomSeed to change random seed values.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
PacketDuplicationPercentage0 - 100, denotes the percentage of packets that will be duplicated once. E.g. "5" means approximately every 20th packet will be duplicated once. RandomSeed to change random seed values. Note: Skipped if the packet is dropped.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
PacketJitterMsVariable delay to apply to all packets which pass through, adds or subtracts amount from fixed delay.
#
Declaration#
Field ValueType | Description |
---|---|
System.Int32 |
#
RandomSeedThe random seed is used to set the initial seed of the random number generator. This is useful to get deterministic runs in tests for example that are dependant on the random number generator.
#
Declaration#
Field ValueType | Description |
---|---|
System.UInt32 |
#
ImplementsINetworkParameter