Why my function OnPlayerLeftRoom is never called ?

Options
Hi !
I have a little problem. I made a scene called "waiting room" where all player who joined a same room are listed.
However, when a player quits the room, his prefab is'nt destroyed because the fnction OnPlayerLeftRoom is not called.
I don't understand why...
The player quits the room by clicking the a button that called LeaveRoom() function and make the player to go to title screen.

Can u help me to resolve my problem ?

Thanks for answers !

Answers

  • Tobias
    Options
    When did you update PUN for the last time? Which version do you use?
    In PUN 2, leaving a room should always remove the objects locally.

    Or did you instantiate a scene/room object?
  • Clashman79
    edited June 2021
    Options
    Tobias wrote: »
    When did you update PUN for the last time? Which version do you use?
    In PUN 2, leaving a room should always remove the objects locally.

    Or did you instantiate a scene/room object?

    I use PUN 2 since february. I need to remove objects for all players, not only locally.
  • Tobias
    Options
    Please answer the open questions, too.