Now that I have most of my code working on Photon, I am running into a pretty big problem that I know has a simple solution, I just don't know what it is. I am trying to destroy a game object (its a Tree) but I am having some trouble with my code. Here is what I have so far, this code is on the Tree object and I want it to destroy itself when I call this function: Code (csharp): [PunRPC] void OnGather() { PhotonNetwork.Destroy(gameObject); } It should be destroying the Tree itself after the rest of the code runs, but for some reason it doesn't run. Instead I get the "Failed to Network-Remove" error. I have been poking around online and I can't seem to find a concrete answer that actually works, and all the ones I try don't seem to be working. Does anyone know how to properly destroy a GameObject? I need it to destroy across the network, and this code is on the Tree itself.
Answer: ( I dun think you need RPC if you are using PhotonNetwork.Destroy) void OnGather() { PhotonNetwork.Destroy(gameObject); }