Skip to content

Commit 21d7384

Browse files
fix: metrics off when tools off (#1269)
1 parent c4bed49 commit 21d7384

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,10 @@ private void Initialize(bool server)
503503
#if DEVELOPMENT_BUILD || UNITY_EDITOR
504504
m_MessagingSystem.Hook(new ProfilingHooks());
505505
#endif
506-
m_MessagingSystem.Hook(new MetricHooks(this));
507506

507+
#if MULTIPLAYER_TOOLS
508+
m_MessagingSystem.Hook(new MetricHooks(this));
509+
#endif
508510
LocalClientId = ulong.MaxValue;
509511

510512
PendingClients.Clear();

com.unity.netcode.gameobjects/Runtime/Timing/NetworkTickSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Unity.Netcode
66
public class NetworkTickSystem
77
{
88
#if DEVELOPMENT_BUILD || UNITY_EDITOR
9-
private static ProfilerMarker s_Tick = new ProfilerMarker($"{nameof(NetworkTimeSystem)}.Tick");
9+
private static ProfilerMarker s_Tick = new ProfilerMarker($"{nameof(NetworkTickSystem)}.Tick");
1010
#endif
1111

1212
/// <summary>

0 commit comments

Comments
 (0)