does anyone have an idea regarding the cause why the player is destroy by the "DestroyPlayerObject"?

Options
Sometimes after the game starts, the player disappears from the game. No error appears, the game object is removed from the scene and nothing else happens.

mainPlayer = (GameObject)PhotonNetwork.Instantiate("playerName", Vector3.zero, Quaternion.identity);)

The player has a photon view and the only observed component is "PhotonRigidbodyView".
I checked the "Photon stats gui" and I have really low resends.
I have a photon view in my manager because I call some RPC from it. I don't know if it can produce some problems.
I back traced the destruction of the player and I found that photon calls "DestroyPlayerObjects".
The "DestroyPlayerObjects" is triggered by the Leave event, but I don't leave the room.

I don't know how to resolve that, does anyone have an idea regarding the cause?

Best Answer

Answers