File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
com.unity.netcode.gameobjects/Runtime Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments