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

List<string> players = new List<string>();
players.Add("5cdcfc0a1a2f5e001119de71-2");
NetworkClient.Lobby.KickPlayers(players, (successful, error) =>{
    if (successful){
        Debug.Log("Players kicked");
    }
    else{
        Debug.Log("Failed to kick players " + error);
     }
});

Last updated