- Home /
Alternative to RPC for destroying objects across a network
Hi! So I'm new to Unity and have an issue getting a script to destroy an object that was in the scene initially (so it wasn't instantiated by script).
Currently if one player destroys the object it remains in the game for the other player even though it has a Network Identity component and a Network Transform component.
I read that I might be able to use RPCs to delete the object from each client but the documentation says RPCs are Legacy / Deprecated.
Could anyone suggest how I destroy the objects for all the clients?
Thanks!
Your answer
Follow this Question
Related Questions
Attached script method doesn't work in multiplayer 0 Answers
Destroying a component over network? 1 Answer
How do I use RPC ,sync player health bar in unity3d c# 1 Answer
Destroying the bullet over a photon network 4 Answers
Objects instantiated by player owned object aren't owned by the player? 2 Answers