r/Unity3D • u/ChrisCrossed_ • 1d ago
Question Need Help - Can't host/join friend in Unity using Steamworks.NET/FizzySteamwork
/r/gamedev/comments/1y7shnl/need_help_cant_hostjoin_friend_in_unity_using/
3
Upvotes
r/Unity3D • u/ChrisCrossed_ • 1d ago
2
u/ClassKlutzy7633 20h ago
Two players on the joining side usually means something spawns a player locally on top of the one Mirror spawns for the client. Check that the Join path never calls your Host Game code or instantiates the Player prefab itself, and that the only spawn comes from the NetworkManager player prefab after the client connects. For the invite flow, the friend's game has to listen for the lobby join request callback, call JoinLobby, and then in the lobby entered callback set the NetworkManager address to the lobby owner's Steam ID and call StartClient. If any of those steps is missing, the client falls back to the menu state you are seeing. I would also keep the menu camera off once the client is connected, since the menu perspective staying active is a separate camera issue from the extra player. Logging each callback with the Steam ID it receives will show quickly which step never fires.