I would like to ask if anyone has any clue why my game would break with the errors in the image after doing the following:
Hosting-client with one machine (A).
Joining (successfully) the scene as a client with another machine (B).
Exiting the match with B (and returning to the “main menu scene” successfully).
Joining again the same scene as before with B. → Then, the error appears.
All the errors appear in B, not in A
Errors in text so the search engines can lead to this thread:
Could not find scene object with sceneid:96FF6970F1CF5840
Spawn scene object not found for 96FF6970F1CF5840 SpawnableObjects.Count=2
Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=10880531158564558912 netId=1
Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=10880531158564558912 netId=1
Spawn scene object not found for 96FF697023E1E74F SpawnableObjects.Count=2
Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=10880531155109668687 netId=2
It is saying scene objects are not found, so have you verified the client has actually loaded the correct scene? That might explain why it isn’t finding those scene objects it expects.
I just got this issue with a single scene. After a lot of debugging I found out that it was caused by moving the scene from its original folder. For some reason that broke everything.
What fixed it for me was bringing the scene file to where it was originally.
If that is not possible for you, I suggest saving the scene with a new name and deleting the old one, see if that helps.
My problem was that I ran DontDestroyOnLoad in awake for a static object with a NetworkIdentity on it. This meant that the object was enabled before being connected. So for future people with the same problem, make sure that no NetworkIdentities are enabled before connecting.