SessionListUpdate
Options
in Photon Bolt
Hello,
I am using SessionListUpdated to instantiate buttons that let users connect to a server. When a room is created, a "Join Game" button is instantiated and that process altogether is working fine.
However, I also want to remove a button when a room is removed, but it seems SessionListUpdated is only called when a room is created, not when a room is destroyed.
What is / is there a function that detects when a room is removed?
Thank you,
TG
P.S.,
If there is a better way to do this, feel free to let me know.
I am using SessionListUpdated to instantiate buttons that let users connect to a server. When a room is created, a "Join Game" button is instantiated and that process altogether is working fine.
However, I also want to remove a button when a room is removed, but it seems SessionListUpdated is only called when a room is created, not when a room is destroyed.
What is / is there a function that detects when a room is removed?
Thank you,
TG
P.S.,
If there is a better way to do this, feel free to let me know.
0
Comments
-
@TractGames
Which Bolt version are you using?SessionListUpdated
will update on a regular basis considering the "Room List Update Rate" in the Bolt Settings.
When the room is created or destroyed, eventually, you will receive an updated list of rooms in the callback or you can look directly at theBoltNetwork.SessionList
as shown here: https://github.com/BoltEngine/Bolt-Sample/blob/df914ab56fae60ca3dbecf628c3074fc402d1559/BoltInit.cs#L721