Lobby - Capi-Metaverse/Template GitHub Wiki
In the Lobby section is where we connect to our Phothon Fusion server, it is formed by 2 panels (LobbyPanel and RoomPanel), a script that controls the changes between them called PanelLobbyManager and a script that controls the functionality of the whole Lobby called LobbyManager.
LobbyManager: Here are different functions that are used in the different parts of the Lobby (LobbyPanel and RoomPanel).

The main ones to highlight used by LobbyPanel are:
-
OnCreateSession: Creates a session with the props or features you pass to it.
-
OnJoinSession: Enter the session you have created.
-
SetSessionList: Shows, through a prefab, the name of the session created inside a container, when you click on this prefab, it joins the room.
The highlights in RoomPanel are:
-
SpawnPlayerItem: Generates a prefab which allows you to choose a character.
-
SetAvatarNumber: When a character in the prefab changes, it contains an internal counter, which varies.
-
OnJoinRoom: Allows to enter the room, with the properties of the session and the chosen character.
-
OnLeaveSession: disconnects from the session.