Kick Players

Overview

Kick players out of a room
Only the room owners can kick players.
Methods
Called by room owners to begin an asynchronous operation to kick the specified players out of their rooms.
Class
The error that occurred when a lobby API operation failed.

Example

1
List<string> players = new List<string>();
2
players.Add("5cdcfc0a1a2f5e001119de71-2");
3
NetworkClient.Lobby.KickPlayers(players, (successful, error) =>{
4
if (successful){
5
Debug.Log("Players kicked");
6
}
7
else{
8
Debug.Log("Failed to kick players " + error);
9
}
10
});
Copied!
Copy link