Skip to content

Commit 3093b22

Browse files
committed
Deprecate DebugSimulator when using UTP2
1 parent 87144f0 commit 3093b22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ private static NetworkEndpoint ParseNetworkEndpoint(string ip, ushort port)
315315
/// </summary>
316316
public ConnectionAddressData ConnectionData = s_DefaultConnectionAddressData;
317317

318-
#if !UTP_TRANSPORT_2_0_ABOVE
319318
/// <summary>
320319
/// Parameters for the Network Simulator
321320
/// </summary>
@@ -350,13 +349,15 @@ public struct SimulatorParameters
350349
/// - packet jitter (variances in latency, see: https://en.wikipedia.org/wiki/Jitter)
351350
/// - packet drop rate (packet loss)
352351
/// </summary>
352+
#if UTP_TRANSPORT_2_0_ABOVE
353+
[Obsolete("DebugSimulator is no longer supported and has no effect.")]
354+
#endif
353355
public SimulatorParameters DebugSimulator = new SimulatorParameters
354356
{
355357
PacketDelayMS = 0,
356358
PacketJitterMS = 0,
357359
PacketDropRate = 0
358360
};
359-
#endif
360361

361362
internal uint? DebugSimulatorRandomSeed { get; set; } = null;
362363

0 commit comments

Comments
 (0)