the docs require you to already have a reference to your lobby choice, mine being quickmatchlobbycontrol. But in my game scene, i dont have reference to it anymore since it is in the menu scene. Is it supposed to be a DoNotDestroyOnLoad and a singleton?
#possible to get reference of current lobby from anywhere?
1 messages · Page 1 of 1 (latest)
You do not need to and should not be using DoNotDestroyOnLoad in general with Steam objects
You can of course get a Lobby you are a member of from anywhere we have a few tools to help you as your users can be a member of multiple lobbies at once
You can learn more here
Few quick code examples
// You can iterate over all lobbies your player is a member of with
foreach (var lobby in LobbyData.MemberOfLobbies)
{
}
// We have also created short cuts for Session
if(LobbyData.SessionLobby(out var lobby))
{
}
// And for Party
if (LobbyData.PartyLobby(out var lobby))
{
}
do u know how I can get the network connection(fishnet) of all players in the lobby?
if so will it work the same on the server