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 !
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 !
0
Answers
-
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?0 -
-
Please answer the open questions, too.0