Patrefans
Pretty Fly Games from patreon
Pretty Fly Games patreon

Code Access: Online multiplayer 🔫 FPS Unity & Photon Fusion EP7 (Lobby Session Browser)

🕑 Added 2022-11-23 21:25:46 +0000 UTC
Code Access: Online multiplayer 🔫 FPS Unity & Photon Fusion EP7 (Lobby Session Browser)

Comments

Lothar Breaking Studio

After 3 days, I finally found the reason. In fact, the callbacks are only registered if the interfaces are a component of the runner or a child of the runner. I had separated them. I must admit that the new Fusion SDK is slightly different from the one where you did the tutorial. However, yours is definitely the best tutorial I have found. As Breaking Studio, we are benefiting from it, and I thank you so much.

Fredrik Kellermann

Hi! The callback OnSessionListUpdated comes from the Lobby, so you'll need to join a lobby to get it update. Are you calling networkRunner.JoinSessionLobby( somewhere in your code? Fusion 2.0 does things a bit differently but the concept is still the same.

Lothar Breaking Studio

I've been stuck on a problem for a while. I'm trying to create a session and publish a list of available sessions. Unfortunately, it's not working because the OnSessionListUpdated callback is never called. I create the session like this: await SessionRunner.StartGame(new StartGameArgs() { GameMode = GameMode.Host , Address = NetAddress.Any() , Scene = SceneRef.FromIndex(SceneManager.GetActiveScene().buildIndex) , SessionName = sessionName , CustomLobbyName = "OurLobbyTest" , SceneManager = GetComponent() }); The other callbacks are being called, such as OnPlayerJoined Where am I going wrong? It seems that the new version of Fusion 2 SDK has changed the way sessions are used... Does it make sense to you?


More Creators