Photon Networking Messages : When a player is leaving the room

Options
Hi there,

I've read a lot of topics, pdf and documentations but didn't find any function or clue about handling this specific case : when the player is currently leaving a room (not after he left ; OnLeftRoom(), not when other players notice that he disconnected ; OnPlayerDisconnected()).

Is it possible to define a custom photon event triggered by the user when he's currently leaving a room ? This event will be triggered before OnLeftRoom() and OnMasterSwitched() of course.

Thank you very much for your help.

Comments