- Home /
Question about Network.Destroy
Hello,
I have a question about Network.Destroy.
I have a server which spawns objects, and then my clients perform Network.Destroy() on the objects when they click on the them.
My question is this however; does the client destroy his Network object locally -BEFORE- checking with the server that it actually exists? Or does the client send a message to the server, which destroys the object, and then sends a message to all clients (including the one that destroyed it) that the object no longer exists?
Thanks
Why not do the experiment? It shouldn't be too hard to find out. I'd expect you to get state synchronisation errors if the object doesn't exist on one of the machines.
I'd believe it send a destroy request to the server cache/buffer, who returns the event to every actors - including the sender, which destroy the object in the same manner than remote players, if it exists - but... why am I guessing stuff?
Your answer
Follow this Question
Related Questions
Sending a gameobject over network with RPC? 2 Answers
Network - Client still in Network.Connections after disconnect 2 Answers
Question about Network and NetworkViewID 1 Answer
Run several unity clients at once in windows? 0 Answers
Unity Multiplayer Design. Is it complicated to implement and learn? 1 Answer