NetworkDiscovery Demo for 5.2?

Hello,
i’m looking for a simple Demo that shows how to work with NetworkDiscovery in the new 5.2 release.
Many thx
M.

1 Like
1 Like

thank you!
well it’s too simple now… i don’t get it :wink:

Hi,
I want to integrate the NetworkDiscovery to 2dshooter sample to achieve following:

  • Remove the NetworkManagerHUD GUI
  • Start the server to start broadcasting.
  • Start a client to listen for broadcast messages
  • Client should connect automatically to the server and join the game.

I added NetworkDiscovery script with NetworkManager object. Client connects to server but the game scene does not transition to Online Scene. I have “Use NetworkManager” selected in NetworkDiscovery.

Can someone help me with how to get this working?

Thanks,
Rishi

re-add the NetworkManagerHUD GUI.
change the OffsetX of the NetworkDiscovery to 300
run host:

  • start as host
  • initialize broadcast
  • start broadcasting

run client:

  • initialize broadcast
  • listen for broadcast
  • IP of host should appear, click button to join the game
1 Like

Hi,
This works.

Thanks,
Rishi