#Netcode Player Prefab disapearing
1 messages · Page 1 of 1 (latest)
Don't know why it's disconnecting. In the network manager, set the log type to developer. But you'll also need to make sure that you are disabling the remote player camera.
Yes, I already am in developer mode for the logs !
I'll check again for the camera thing, but it feels weird that it would make the player prefab disapear from hierarchy 
Oh that wouldn't cause the shutdown. But it would cause other issues.
Comment out anywhere you are calling network manager Shutdown()
Also, i am already disabling the camera 😦
Oh also, just so you know, If i launch the game with just 1 player, it works fine
Use OnNetworkSpawn() there instead of Start()
No particular change sadly
Post the code here. Not sure what is getting destroyed there
The Prefabs are disappearing because the network is shutting down for some reason
Here is my github branch on the project.
Because i don't really know what might cause the issue honestly 😦
https://github.com/DamienDemontis/Inept-Intruders/tree/tentative-relay-unity-network
You seem to be getting a ton of errors and warnings. Surely some of them have to be relevant.
Especially when you say it works for host only and then with 2 players you're getting Networking errors that say you're doing something invalid on a non-host client.
I would start debugging anything you're destroying or disabling, see if it makes any difference.