docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMultiplayService

    Interface of the Multiplay SDK for using the Multiplay Service.

    Namespace: Unity.Services.Multiplay
    Assembly: solution.dll
    Syntax
    public interface IMultiplayService

    Properties

    Name Description
    ServerConfig

    Gets the server config for the current session.

    Methods

    Name Description
    GetPayloadAllocationAsPlainText()

    Gets the payload allocation as plain text.

    GetPayloadAllocationFromJsonAs<TPayload>(bool)

    Gets the payload allocation, in JSON, and deserializes it as the given object.

    ReadyServerForPlayersAsync()

    Readies this server. To be called after the server has been Allocated to notify that the server is ready to accept players.

    StartServerQueryHandlerAsync(ushort, string, string, string, string)

    Starts the server query handler. The handler provides the Multiplay Service with information about this server.

    SubscribeToServerEventsAsync(MultiplayEventCallbacks)

    Subscribes to the SDK Daemon and provides updates via callbacks.

    UnreadyServerAsync()

    Unreadies this server. To be called to prevent the server being given new players.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)