SendSpawnMessage: added a comment about missing msg.rotation for scene objects

This commit is contained in:
vis2k 2018-12-30 23:36:52 +01:00
parent b7e80514b5
commit c2008654b4

View File

@ -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);