From c2008654b49ad2319f142513727fed21dda92ace Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 30 Dec 2018 23:36:52 +0100 Subject: [PATCH] SendSpawnMessage: added a comment about missing msg.rotation for scene objects --- Mirror/Runtime/NetworkServer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Mirror/Runtime/NetworkServer.cs b/Mirror/Runtime/NetworkServer.cs index 92decc8de..42e2f8341 100644 --- a/Mirror/Runtime/NetworkServer.cs +++ b/Mirror/Runtime/NetworkServer.cs @@ -912,6 +912,7 @@ internal static void SendSpawnMessage(NetworkIdentity identity, NetworkConnectio msg.netId = identity.netId; msg.sceneId = identity.sceneId; msg.position = identity.transform.position; + // note: no msg.rotation here because client&server both start with same scene (=same scene object rotations) // include synch data msg.payload = identity.OnSerializeAllSafely(true);