diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index 0e37b2b20..f42e311e3 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -968,7 +968,11 @@ internal NetworkIdentitySerialization GetSerializationAtTick(int tick) // (otherwise [SyncVar] changes would never be serialized in tests) // // NOTE: != instead of < because int.max+1 overflows at some point. - if (lastSerialization.tick != tick || !Application.isPlaying) + if (lastSerialization.tick != tick +#if UNITY_EDITOR + || !Application.isPlaying +#endif + ) { // reset lastSerialization.ownerWriter.Position = 0;