diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index abcb37a8f..c6142e368 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -282,6 +282,12 @@ protected virtual void OnClientToServerDeltaSync(byte baselineTick, Vector3? pos // we should never apply a delta on top of a wrong baseline. if (baselineTick != lastDeserializedBaselineTick) { + // debug draw: drop + if (debugDraw) + { + if (position.HasValue) Debug.DrawLine(position.Value, position.Value + Vector3.up, Color.red, 10f); + } + // this can happen if unreliable arrives before reliable etc. // no need to log this except when debugging. // Debug.Log($"[{name}] Server: received delta for wrong baseline #{baselineTick} from: {connectionToClient}. Last was {lastDeserializedBaselineTick}. Ignoring."); @@ -426,6 +432,12 @@ protected virtual void OnServerToClientDeltaSync(byte baselineTick, Vector3 posi // we should never apply a delta on top of a wrong baseline. if (baselineTick != lastDeserializedBaselineTick) { + // debug draw: drop + if (debugDraw) + { + Debug.DrawLine(position, position + Vector3.up, Color.red, 10f); + } + // this can happen if unreliable arrives before reliable etc. // no need to log this except when debugging. // Debug.Log($"[{name}] Client: received delta for wrong baseline #{baselineTick}. Last was {lastDeserializedBaselineTick}. Ignoring.");