Search Unity

Third Party Player got destroyed "DestroyPlayerObjects" called by Photon EventCode: Leave Photon

Discussion in 'Multiplayer' started by FrancescoCataniaDev, Apr 21, 2021.

  1. FrancescoCataniaDev

    FrancescoCataniaDev

    Joined:
    Feb 20, 2018
    Posts:
    1
    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 back traced the destruction of the player and I found that photon calls "DestroyPlayerObjects".
    The "DestroyPlayerObjects" is triggered by the Photon 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?
     
  2. mdh560354

    mdh560354

    Joined:
    Dec 26, 2021
    Posts:
    2
    bur same error
     
  3. Lukeesta

    Lukeesta

    Joined:
    Jan 7, 2016
    Posts:
    79
    Try attaching the support logger and see whether there are any disconnect logs in the console.