rocket-launchMultiplayer

API References for Multiplayer Service

Explore the list of API functions available in Unity for multiplayer, including detailed descriptions and usage examples.

circle-exclamation

Room Management

Create a room in initial state

var room = await ServiceHub.Services.MultiPlayer.RoomService.CreateRoom(new CreateRoomParams
{
    Name = "room name",
    IsPrivate = false,
    IsPermanent = false,
    MinPlayer = 0,
    MaxPlayer = 0,
    MinXp = 0,
    MaxXp = 1000,
    Status = RoomStatus.Initial,
    IsTurnBasedGame = false,
    GameOrderType = GameOrderType.RoundRobin,
    Metadata = "any data",
    Players = null
});

Create Room and Open itarrow-up-right

Create a room in initial state

Join by AutoMatcharrow-up-right

Looking for a suitable room to join or create one

Get all existing roomsarrow-up-right

The function will return all available rooms to join

Get all existing rooms Match user's XParrow-up-right

The function will return all available rooms to join according to the user's xp

Get Room By IDarrow-up-right

The function will return room's details by room's ID

Get Room By Namearrow-up-right

The function will return room's details by room's name

Joining to a room by room's ID

Leaving a room by room's ID

Delete a room by it's ID

Match Management

Create a new Match

Make and Start Matcharrow-up-right

Create a new Match and start it

Load a match by its ID

GetMyMatchesarrow-up-right

Get user's matches

Last updated