Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Requests that the server leave the client-owned lobby it's currently in.
public void LeaveAsServer()
Remarks
This method queues an asynchronous operation to exit the client-owned lobby. On completion, a PlayFabMultiplayer.PlayFabMultiplayerServer.OnServerLobbyLeaveAsServerCompleted is provided indicating that the operation completed.
This operation is restricted to client-owned lobbies that are using connections.
Any server-owned data previously added to the lobby is NOT automatically deleted when the server leaves the lobby. If there's a desire to also delete the serverData, it should be explicitly done by calling PlayFabMultiplayer.PostUpdateAsServer before leaving the lobby.
See Also
- class Lobby
- namespace PlayFab.Multiplayer