From 5097d82707b2cbec44cf929cb2ba9eb8be5f93fb Mon Sep 17 00:00:00 2001 From: mischa Date: Mon, 15 Jul 2024 13:24:14 +0200 Subject: [PATCH] Spawn message: always Traditional --- Assets/Mirror/Core/NetworkServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Core/NetworkServer.cs b/Assets/Mirror/Core/NetworkServer.cs index c9a082b83..072dea133 100644 --- a/Assets/Mirror/Core/NetworkServer.cs +++ b/Assets/Mirror/Core/NetworkServer.cs @@ -1368,7 +1368,8 @@ static ArraySegment CreateSpawnMessagePayload(bool isOwner, NetworkIdentit // serialize all components with initialState = true // (can be null if has none) - identity.SerializeServer(true, ownerWriter, observersWriter); + // SyncMethod doesn't matter for initialState, since everything is included + identity.SerializeServer(true, SyncMethod.Traditional, ownerWriter, observersWriter); // convert to ArraySegment to avoid reader allocations // if nothing was written, .ToArraySegment returns an empty segment.