"Restart" a multiplayer game

Include the following details (edit as applicable):

  • Issue category: Multiplayer
  • Device type & OS version: iOS
  • Host machine & OS version: Mac M1 Ventura
  • Issue Environment : Unity Mock / On Device
  • ARDK version: 2.3.2
  • Unity version: 2021.3.20f1

Description of the issue:

Hi y’all I’m currently working on a little Multiplayer AR experience.
Now I’m wondering, if the game is over, how do I restart it?

The loop is → Main Menu → Join / Host game → Win / Lose → back to Main menu.

Can I just “reload” the scene or do I need to unsubscribe from events / disable the networking?

Would be happy about some advice here!


Hi Tobias,

A MultipeerNetworking object used to facilitate multiplayer experiences can only be connected to at most one session. With that being said, I would recommend you “clean up” all networking related objects when a user goes back to the main menu. That will also ensure you don’t get unexpected behavior in new sessions. For more information, please check out our Networking Limits and Best Practices guide.

I hope that helps!
Maverick L.

Thank you mate :slight_smile: I will try that