This document provides a detailed reference for the public properties and methods of the PlayFlowLobbyManagerV2 class.

Properties

Instance
PlayFlowLobbyManagerV2
required

Singleton instance of the Lobby Manager. Access all lobby functionality through this.

IsReady
bool
required

Returns true if the manager has been successfully initialized.

CurrentLobby
Lobby
required

Gets the full data for the lobby the player is currently in. Returns null if not in a lobby.

PlayerId
string
required

Gets the unique ID of the current player, as provided during initialization.

State
LobbyState
required

Gets the current state of the lobby session (e.g., Disconnected, InLobby).

Events
PlayFlowEvents
required

Provides access to all lobby-related UnityEvents (e.g., OnLobbyJoined, OnPlayerLeft).

AvailableLobbies
List<Lobby>
required

A cached list of all currently available public lobbies. This list is updated automatically if auto-refresh is enabled.

IsInLobby
bool
required

A quick check to see if the player is currently in a lobby.

IsHost
bool
required

Returns true if the current player is the host of the lobby they are in.

InviteCode
string
required

Gets the invite code for the current private lobby. Returns null if not in a private lobby.

Methods