Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Can a host manually update their current lobby count?

Discussion in 'Lobby' started by dre4mer, Nov 22, 2023.

  1. dre4mer


    May 26, 2016
    Is it possible to have the host update the lobby count?

    At the moment the count updates if someone joins, and I also have players leave which updates the count. However, if a player crashes (so they couldn't leave.) then the player count doesn't update, even when refetching the lobbies to see what is joinable.

    Is there a way to have the host update the count periodically? I see I can update the lobby options but that isn't what we need, so can the host update the player count? I don't see anything about this in the documentation or via searching.

    thanks for any assistance!

    ok continuing to research around, maybe I need to have the host subscribed to any players disconnecting and then have the host run LobbyService.Instance.RemovePlayerAsync? If host receives that event? Is that how this should be handled?
    Last edited: Nov 22, 2023