diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 865ebd927..e5dc31c6b 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -1169,10 +1169,10 @@ public static void PrepareToSpawnSceneObjects() { if (spawnableObjects.TryGetValue(identity.sceneId, out NetworkIdentity existingIdentity)) { - string errorMsg = $"NetworkClient: Duplicate sceneId {identity.sceneId} detected on {identity.gameObject.name} and {existingIdentity.gameObject.name}\n" + + string msg = $"NetworkClient: Duplicate sceneId {identity.sceneId} detected on {identity.gameObject.name} and {existingIdentity.gameObject.name}\n" + $"This can happen if a networked object is persisted in DontDestroyOnLoad through loading / changing to the scene where it originated,\n" + $"otherwise you may need to open and re-save the {identity.gameObject.scene} to reset scene id's."; - Debug.LogWarning(errorMsg, identity.gameObject); + Debug.LogWarning(msg, identity.gameObject); } else spawnableObjects.Add(identity.sceneId, identity);