I learn NetCode and running "2DSpasceShooter ",well,run this nothing problem. then I delete the "Ship"prefab NetworkPrefabs List ,then build it again, run it in server mode and host mode . I found nothing problem too.
So ,why the example of NetowrkManager push the “Ship” prefab in NetworkPrefabs List? the document so simple can’t understand it …but, “Bullet”、“Powerup”、“Asteroid” are the server create Objects ,and need NetworkPrefab ,but “Ship” really need that?
If you delete the ship prefab from the network prefab list it will work on host but not on clients. The clients need to know what object to spawn as their player when they connect
1 Like