Search Unity

Restarting Online Scene, Changing from Online Scene to Different Offline Scene

Discussion in 'Multiplayer' started by Deleted User, Jun 5, 2016.

  1. Deleted User

    Deleted User

    Guest

    I have 2 questions about changing from an online scene.

    Is there a way to restart the current online scene? I've checked the docs, and the only way I've been able to do it is to send everyone back to the lobby, then change the onlineScene/playScene and start the host/clients again.

    Is there a way to change from the current online scene to an offline scene that is not the offlineScene/lobbyScene? Right now, I send everyone back to the lobby, then load the actual offline scene that's needed.
     
  2. Deleted User

    Deleted User

    Guest

    Surely these are really common state changes. Does UNet handle these gracefully or at all?
     
  3. Oshroth

    Oshroth

    Joined:
    Apr 28, 2014
    Posts:
    99
  4. Deleted User

    Deleted User

    Guest

    OK, I think that may work for restarting the current scene. Thanks!

    For moving from an online scene to an offline scene that isn't the offlineScene/lobbyScene, I think I will just set the offlineScene/lobbyScene to what I need, then change it back to the original offline scene when starting a new online game.