- Home /
Spawn network objects in procedural map
In my game, the server generates a procedural map, after send generation seed to generate it on the client. The client generates exactly the same map. In the map, I need to synchronize objects with NetworkIdentity. Therefore, after the map is generated on clients, the server will spawn all map's objects with NetworkIdentity on the client using NetworkServer.Spawn on server. In theory, it sounds normal, but in practice, objects on the server that have a NetworkIdentity component can not be obtained with GetChild from the object of the generated map. Unity do not see them. This probably means that they are not active on the server. How to fix it? And if it will fix, will the objects with NetworkIdentity be spawned on the client as children of the map? If this is not possible, is it possible to use something other than the UNET?
Your answer
![](https://koobas.hobune.stream/wayback/20220612170548im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Photon Networking - What function(s) are called when a player (not me) is spawned? 2 Answers
How to call [Command] on Client in UNet 1 Answer
How to Sync Non-Players Actions in Multiplayer Games 1 Answer
Help| Sync' boolean variable (Friendly Fire) 0 Answers
RTS Multiplayer, Lock-step simulations and fixed game timings 1 Answer