MasterServer

class in UnityEngine

Cambiar al Manual

Descripción

El Master Server (Servidor Maestro) se utiliza para hacer el emparejamiento entre servidores y clientes fácil.

You can advertise game hosts or fetch host lists for you game type. The functions here are used to communicate with the Master Server itself which resides on a separate server. If necessary the server itself can be customized. For an overview of the Master Server as well as a technical description see the Master Server manual page.

Variables Estáticas

dedicatedServerReporte esta maquina como un servidor dedicado.
ipAddressLa dirección IP del master server.
portEl puerto de conexión del master server.
updateRateDefina la tasa de actualización minima para la actualización de información anfitriona del master server.

Funciones Estáticas

ClearHostListLimpia la lista anfitriona que ha sido recibida por MasterServer.PollHostList.
PollHostListRevise por la lista anfitriona actualizada recibida utilizando MasterServer.RequestHostList.
RegisterHostRegistre este servidor en el master server.
RequestHostListSolicite una lista de anfitriones del master server (servidor maestro).
UnregisterHostAnule el registro de este servidor desde el master server.

Mensajes

OnFailedToConnectToMasterServerLlamado en clientes o servidores cuando hay un problema que se conecta al master server.
OnMasterServerEventLlamado en clientes o servidores cuando se reporta eventos desde el MasterServer.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961