#Unity Netcode Scene Switching Troubles

1 messages · Page 1 of 1 (latest)

kindred glacier
#

ive been trying to make my main menu for my game for a while now. im at the point where you can join ur friends lobby and see all the members. but when i click play game only the host is switching over to the game scene. i followed this tutorial for setting up steam
https://www.youtube.com/watch?v=kBgnIJUfQak

public void switchScene(string whatScene) { NetworkManager.Singleton.SceneManager.LoadScene(whatScene,LoadSceneMode.Single); }

In this video I will walk you through the setup and implementation of Facepunch.steamworks for Unity. By the end of this video you will be able to start a lobby using steam and open up Netcode for Gameobjects as a host. I forgot to mention in the video that you can have friends connect at this point, however only the debug logs will indicate for...

▶ Play video
grim imp
#

Sounds like the clients did not actually connect to the host. Are you using Relay or Session codes to join the host?

kindred glacier
#

i im doing P2P im not sure exactly what sessions or relay

grim imp
#

how are your clients connecting?

#

If you are using the Steamworks Transport, you need to make sure the clients are getting the correct steam id from the lobby

kindred glacier
#

I am using the steamworks transport! and ok ill try that!

grand void
#

also make sure scene management is enabled in the network config!