Photon Unity Networking 2  v2.1
English | 日本語 | 한국
Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
TypedLobby Class Reference

Refers to a specific lobby (and type) on the server. More...

Inherited by TypedLobbyInfo.

Public Member Functions

 TypedLobby (string name, LobbyType type)
 
override string ToString ()
 

Public Attributes

string Name
 Name of the lobby this game gets added to. Default: null, attached to default lobby. Lobbies are unique per lobbyName plus lobbyType, so the same name can be used when several types are existing. More...
 
LobbyType Type
 Type of the (named)lobby this game gets added to More...
 

Static Public Attributes

static readonly TypedLobby Default = new TypedLobby()
 

Properties

bool IsDefault [get]
 

Detailed Description

Refers to a specific lobby (and type) on the server.

The name and type are the unique identifier for a lobby.
Join a lobby via PhotonNetwork.JoinLobby(TypedLobby lobby).
The current lobby is stored in PhotonNetwork.lobby.

Member Data Documentation

string Name

Name of the lobby this game gets added to. Default: null, attached to default lobby. Lobbies are unique per lobbyName plus lobbyType, so the same name can be used when several types are existing.

LobbyType Type

Type of the (named)lobby this game gets added to