用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:masterserver:masterserver

MasterServer 主服务器

class in UnityEngine

Description 描述

The Master Server is used to make matchmaking between servers and clients easy.

主网络服务器用于是服务器与客户端连接匹配更容易。

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.

你可以发布游戏主机或者为你读取游戏类型主机列表。该函数在这里的功能用来与单独分离的主服务器进行通信。如果必须的话该主服务器可以被自定义。主服务器的概述以及技术描述请参考主服务器手册页面。

Static Variables 静态变量

dedicatedServerReport this machine as a dedicated server.
报告这台机器作为专用服务器。
ipAddressThe IP address of the master server.
主服务器的IP地址。
portThe connection port of the master server.
主服务器的连接端口。
updateRateSet the minimum update rate for master server host information update.
为主服务器主机信息更新设置最小更新比率。

Static Functions 静态函数

ClearHostListClear the host list which was received by MasterServer.PollHostList.
清除被MasterServer.PollHostList接收的主机列表。
PollHostListCheck for the latest host list received by using MasterServer.RequestHostList.
检查通过MasterServer.RequestHostList接收的最新的主机列表。
script/unityengine/classes/masterserver/masterserver.txt · 最后更改: 2016/08/02 05:28 (外部编辑)