用户工具

站点工具


侧边栏

script:unityengine:classes:network:network

Network 网络

class in UnityEngine

Description 描述

The network class is at the heart of the network implementation and provides the core functions.

Network类是网络实现的核心并提供核心函数。

This class configures the network interface and all the network parameters. You use it to set up a server or connect to one and have a row of helper functions to help you with those tasks. For more information on what is exposed in the editor see the Network Manger component reference.

这个类配置了网络接口和所有网络参数。可以使用它来设置一个服务器或连接到一个服务器并有一些辅助函数来帮助你完成这些功能。获取更多信息请参考Network Manger component reference。

Static Variables 静态变量

connectionsAll connected players.
所有连接的玩家。
connectionTesterIPThe IP address of the connection tester used in Network.TestConnection.
用在Network.TestConnection中的连接测试的IP地址。
connectionTesterPortThe port of the connection tester used in Network.TestConnection.
用在Network.TestConnection中的连接测试的端口。
incomingPasswordSet the password for the server (for incoming connections).
为服务器设置密码(入站连接)。
isClientReturns true if your peer type is client.
如果端点类型是客户端,返回true。
isMessageQueueRunningEnable or disable the processing of network messages.
启用或禁用网络消息处理。
isServerReturns true if your peer type is server.
如果端点类型是服务器,返回true
logLevelSet the log level for network messages (default is Off).
设置用于网络消息的日志级别(默认是关闭的)。
script/unityengine/classes/network/network.txt · 最后更改: 2016/08/02 05:27 (外部编辑)