Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Close Multiplayer Connection within Single Scene

Discussion in 'Multiplayer' started by siddharth3322, Dec 13, 2018.

  1. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    I have these question regarding multi-player game that I have built. I have gone through multiplayer tutorial available in Unity website and watched few paid online multiplayer courses too. Still I am not clear about these questions so I asking here and hope someone will give proper details about this:

    • In multiplayer game, how can I remove a player when he died from multiplayer network? Mostly all tutorials spawning him again so they are doing repositioning. I want to completely remove died player from game.
    • In multiplayer game, when this device player died how to close multiplayer connection? Because I have not used separate scene for multiplayer activity within same scene I was running single player and multiplayer modes of game. So I want to close multiplayer connection properly, again game player can connect with new match. Following image represent my point:
    dodgels_multiplayer_inspector.png

    I have these questions regarding current project implementation, I hope some one will explain this to me :)