How to exit from a room so that OnPlayerLeft callback is called on the local client as well?

Options

Currently I've tried Runner.Shutdown as well as destroying all the components accept transform but in both the cases the OnPlayerLeft callback is not being invoked on the local player side (the player that just left)

Comments

  • ramonmelo
    Options

    Hi @Siddhant ,


    That is by design, the OnPlayerLeft is invoked only when another player leaves the Game Session.

    If you want to deal with the local player disconnecting, you need to do it from either the OnShutdown or the OnDisconnectedFromServer callbacks, depending on which mode you are using.


    --

    Ramon Melo

    Photon Fusion Team