Cant join a room after completing a game


When I create a room and other players join my room I can start the game normally using my Start Game button, But when my game is finished and I am back to the lobby and I try to create another room either with same name or other name my Start Game button no longer works, And yes all players leave the room when the game is finished. The Start Game button does gets pressed but the game scene does not load. Unless I leave the room and recreate it again, then it works.

Is this a bug or a timeout thing?

Here is code for my Start Button:

And here is the code for my Leave Game Button:


  • Tobias
    Tobias admin

    PUN has no known bugs that would affect buttons, so it is quite likely something you need to find in your project.

    Maybe it's just that you set the button to Interactable = false and that affects the next round?

    You don't have to RemoveBufferedRPCs when you leave a room. Apparently you closed the room, so nobody is joining and the buffered events are not sent again. They are cleaned up when the room is empty.