docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IServerQueryHandler

    The interface for setting the current data supplied to the Multiplay Service via the Server Query Handler.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Services.Multiplay
    Assembly: Unity.Services.Multiplayer.Multiplay.dll
    Syntax
    public interface IServerQueryHandler : IDisposable

    Properties

    BuildId

    The version of the game.

    Declaration
    string BuildId { get; set; }
    Property Value
    Type Description
    string

    CurrentPlayers

    The number of players currently on the server.

    Declaration
    ushort CurrentPlayers { get; set; }
    Property Value
    Type Description
    ushort

    GameType

    The name or identifier of the game type the server is running.

    Declaration
    string GameType { get; set; }
    Property Value
    Type Description
    string

    Map

    The map or world the server is running for the game.

    Declaration
    string Map { get; set; }
    Property Value
    Type Description
    string

    MaxPlayers

    The maximum number of players on the server.

    Declaration
    ushort MaxPlayers { get; set; }
    Property Value
    Type Description
    ushort

    Port

    The game port that game clients connect to.

    Declaration
    ushort Port { get; set; }
    Property Value
    Type Description
    ushort

    ServerName

    The name for the server.

    Declaration
    string ServerName { get; set; }
    Property Value
    Type Description
    string

    Methods

    UpdateServerCheck()

    Updates the servercheck values for the server. This is expected to be called in an update loop.

    Declaration
    void UpdateServerCheck()
    In This Article
    Back to top
    Copyright © 2024 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)