- Home /
Need Server to Find NetworkIdentity Components AFTER Initialization
I have a project that spawns bundles of prefabs using a procedural-generation script. Since the Unity networking tool will not recognize child objects as having their own NetworkIdentity, I then move them out of the hierarchy and as their own object into the game world hierarchy.
Then I add a Network Identity component to the prefabs.
So far so good!
The problem is that after all of this, the server does not recognize that these objects have a Network Identity component. I suspect this is because they have been added to the prefabs AFTER the server initialized.
How can I have the server look for NetworkIdentity components on objects after initialization? I need it to detect these objects and sync the elements associated with them.
To clarify:
Bundles of child objects are brought into the game world
Children are moved out of their parent objects and made their own object (no parents) in the hierarchy
NetworkIdentity components are added to these Objects with a script
PROBLEM: Server does not detect them as having a NetworkIdentity component, so they don't sync. Is there a command here to force the server to look again for NetworkIdentity components?
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Multiplayer advanced - Single Player in Multiplayer game, using another Hosting services. 0 Answers
Unity Networking Client not calling functions on server 0 Answers
How do you Change Color or any variable of non-player object on both client and server in uNet 0 Answers
LLAPI Networking: NetworkConnection.TransportRecieve not being used 1 Answer