diff --git a/Assets/Mirror/Core/NetworkManager.cs b/Assets/Mirror/Core/NetworkManager.cs index 7661d2d2a..408528d57 100644 --- a/Assets/Mirror/Core/NetworkManager.cs +++ b/Assets/Mirror/Core/NetworkManager.cs @@ -1347,13 +1347,11 @@ public virtual void OnStopClient() {} /// This is called when a host is stopped. public virtual void OnStopHost() {} - // OnGUI allocates even if it does nothing. avoid in release. -#if UNITY_EDITOR || DEVELOPMENT_BUILD + // keep OnGUI even in builds. useful to debug snap interp. void OnGUI() { if (!timeInterpolationGui) return; NetworkClient.OnGUI(); } -#endif } }