Multiplayer

API References for Multiplayer Service

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

Room Management

Create Room

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 it

Create a room in initial state

Join by AutoMatch

Looking for a suitable room to join or create one

Get all existing rooms

The function will return all available rooms to join

Get all existing rooms Match user's XP

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

Get Room By ID

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

Get Room By Name

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

Join

Joining to a room by room's ID

Leave

Leaving a room by room's ID

Delete Room

Delete a room by it's ID

Match Management

Make Match

Create a new Match

Make and Start Match

Create a new Match and start it

Load Match

Load a match by its ID

GetMyMatches

Get user's matches

Last updated