Skip to content

Class Manus::Networking::SimpleLobbyBrowser

ClassList > Manus > Networking > SimpleLobbyBrowser

A sample Lobby Browser to display how one might want to show lobbies.

Inherits the following classes: MonoBehaviour

Public Attributes

Type Name
GameObject clientUsernameObject
NetLobbyInfo firstFoundHost
GameObject genericLobbyGameButton
Button joinButton
RectTransform lobbyGameListRect
NetworkManager manager
bool shouldUpdate = = false

Public Properties

Type Name
property List< NetLobbyInfo > lobbyList
property NetLobbyInfo selectedLobby
The currently selected Lobby.

Public Functions

Type Name
List< NetLobbyInfo > FindAvailableHosts ()
Fetch available hosts on the network which can be connected to.
void UpdateBrowser (List< NetLobbyInfo > p_LobbyList)
Updates the list of lobbies in the interface.

Public Attributes Documentation

variable clientUsernameObject

GameObject Manus.Networking.SimpleLobbyBrowser.clientUsernameObject;

variable firstFoundHost

NetLobbyInfo Manus.Networking.SimpleLobbyBrowser.firstFoundHost;

variable genericLobbyGameButton

GameObject Manus.Networking.SimpleLobbyBrowser.genericLobbyGameButton;

variable joinButton

Button Manus.Networking.SimpleLobbyBrowser.joinButton;

variable lobbyGameListRect

RectTransform Manus.Networking.SimpleLobbyBrowser.lobbyGameListRect;

variable manager

NetworkManager Manus.Networking.SimpleLobbyBrowser.manager;

variable shouldUpdate

bool Manus.Networking.SimpleLobbyBrowser.shouldUpdate;

Public Properties Documentation

property lobbyList

List<NetLobbyInfo> Manus.Networking.SimpleLobbyBrowser.lobbyList;

property selectedLobby

NetLobbyInfo Manus.Networking.SimpleLobbyBrowser.selectedLobby;

Public Functions Documentation

function FindAvailableHosts

Fetch available hosts on the network which can be connected to.

inline List< NetLobbyInfo > Manus::Networking::SimpleLobbyBrowser::FindAvailableHosts () 

Returns:

function UpdateBrowser

Updates the list of lobbies in the interface.

inline void Manus::Networking::SimpleLobbyBrowser::UpdateBrowser (
    List< NetLobbyInfo > p_LobbyList
) 

Parameters:

  • p_LobbyList List of lobbies

The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/SimpleLobbyBrowser.cs