




已阅读5页,还剩22页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Network Actions These actions give you complete access to the Unity Networking API Also check out the Networking documentation MasterServer Clear Host List MasterServer Get Host Count MasterServer Get Host Data MasterServer Get Next Host Data MasterServer Get Properties MasterServer Register Host MasterServer Request Host List MasterServer Set Properties MasterServer Unregister Host Network Close Connection Network Connect Network Destroy Network Disconnect Network Get Player Ping Network Get Connected Player Properties Network Get Connections Count Network Get Is Message Queue Running Network Get Last Ping Network Get Local Player Properties Network Get Maximum Connections Network Get Message Player Properties Network Get Minimum Allocatable View IDs Network Get On FailedToConnect Properties Network Get Next Connected Player Properties Network Get Send Rate Network Get Time Network Have Public Ip Address Network Initialize Server Network Instantiate Network Is Client Network Is Server Network Peer Type Switch Network Set Is Message Queue Running Network Set Level Prefix Network Set Log Level Network Set Maximum Connections Network Set Minimum Allocatable View IDs Network Set Send Rate NetworkView Is Mine NetworkView Remove RPCs Send Remote Event Start Server 网络行为 这些行动给你网络的统一 API 完全访问权限 另外检查网络文档 MasterServer 清除主机列表 MasterServer 获取主机数 MasterServer 获取主机数据 MasterServer 获取下一个主机数据 MasterServer 获取属性 MasterServer 注册主机 MasterServer 请求主机列表 MasterServer 设置属性 MasterServer 注销主机 网络关闭连接 网络连接 网络销毁 网络断开连接 网络得到 Player 平 网络获取连接播放器的性能 网络获取连接数 网络得到的是消息队列运行 网络获得最后平 网络获取本地玩家属性 网络获取最大连接数 网络获取消息玩家属性 网络得到最低可分配的视图 ID 网络上无法连接属性 网络获取下一个连接播放器的属性 网络获取发送速率 网络获取时间 网络有公网 IP 地址 网络初始化服务器 网络实例 网络是客户端 网络是服务器 网络对等类型开关 网络设置是消息队列运行 网络设置等级前缀 网络设置日志级别 网络设置最大连接数 网络设置最低可分配的视图 ID 网络设置发送速率 NetworkView 是我的 NetworkView 删除的 RPC 发送远程事件 启动服务器 MasterServer Clear Host List MasterServer 清除主机列表 Clear the host list which was received by MasterServer Request Host List 清除 MasterServer 收到请求的主机列表主机列表 MasterServer Get Host Count MasterServer 获取主机数 Get the number of hosts on the master server Use MasterServer Get Host Data to get host data at a specific index 在主服务器上的主机的数量 使用 MasterServer 获取主机数命令来获得主机的数据在一个特定的指数 CountThe number of hosts on the MasterServer 数MasterServer 的主机数目 MasterServer Get Host Data MasterServer 获取主机数据 Get host data from the master server 从主服务器获取主机的数据 Host Index 主机索引 The index into the MasterServer Host List MasterServer 主机列表中的索引 Use Nat 使用 NAT Does this server require NAT punchthrough 此服务器是否规定 NAT 穿通 Game Type 游戏类型 The type of the game e g MyUniqueGameType 什么类型的游戏 例如 MyUniqueGameType Game Name 游戏名称 The name of the game e g John Does s Game 游戏的名称 例如 约翰 经营的游戏 Connected Players 连接的玩家 Currently connected players 当前连接的玩家 Player Limit 玩家限制 Maximum players limit 最大玩家限制 Ip AddressIP 地址 Server IP address 服务器的 IP 地址 Port 端口 Server port 服务器端口 Password Protected 密码保护 Does the server require a password 服务器是否需要密码 Comment 评论 A miscellaneous comment can hold data 杂项的注释 可容纳数据 Guid The GUID of the host needed when connecting with NAT punchthrough GUID 需要主机连接时 NAT 穿通 MasterServer Get Next Host Data MasterServer 获取下个主机数据 Get the next host data from the master server Each time this action is called it gets the next host This lets you quickly loop through all the connected hosts 获取下一个主机的数据从主服务器 每次这个动作被称为它获取下一个主机 这可以让你快速遍历所有连接的主机 Loop Event 循环事件 Event to send to get the next host 事件发送到下一个主机 Finished Event 完成事件 Event to send when there are no more hosts 事件发送时 有没更多的主机 Index 指数 The index into the MasterServer Host List MasterServer 主机列表中的索引 Use Nat 使用 NAT Does this server require NAT punchthrough 此服务器是否规定 NAT 穿通 Game Type 游戏类型 The type of the game e g MyUniqueGameType 什么类型的游戏 例如 MyUniqueGameType Game Name 游戏名称 The name of the game e g John Does s Game 游戏的名称 例如 约翰 经营的游戏 Connected Players 连接的玩家 Currently connected players 当前连接的玩家 Player Limit 玩家限制 Maximum players limit 最大玩家限制 Ip AddressIP 地址 Server IP address 服务器的 IP 地址 Port 端口 Server port 服务器端口 Password Protected 密码保护 Does the server require a password 服务器是否需要密码 Comment 评论 A miscellaneous comment can hold data 杂项的注释 可容纳数据 Guid The GUID of the host needed when connecting with NAT punchthrough GUID 需要主机连接时 NAT 穿通 MasterServer Get Properties MasterServer 获取属性 Get the IP address port update rate and dedicated server flag of the master server and store in variables 获取 IP 地址 端口 更新率和专用服务器的主服务器 并存储在变量标志 Ip AddressIP 地址 The IP address of the master server 主服务器的 IP 地址 Port 端口 The connection port of the master server 的主服务器的连接端口 Update Rate 更新率 The minimum update rate for master server host information update Default is 60 主服务器上主机信息的最低更新率 默认为 60 秒 seconds Dedicated Server 专用服务器 Flag to report if this machine is a dedicated server 标志报告 如果这台机器是专用服务器 Is Dedicated Server Event 是专用服务器事件 Event sent if this machine is a dedicated server 如果这台机器是专用服务器发送的事件 Is Not Dedicated Server Event 不是专用服务器事件 Event sent if this machine is not a dedicated server 如果这台机器是不是一个专用的服务器发送的事件 MasterServer Register Host MasterServer 注册主机 Register this server on the master server If the master server address information has not been changed the default Unity master server will be used 在主服务器上注册该服务器 如果主服务器的地址信息不被改变了默认的 Unity 主服务器将被使用 Game Type Name 游戏类型名称 The unique game type name 独特的游戏类型的名称 Game Name 游戏名称 The game name 游戏的名称 Comment 评论 Optional comment 可选注释 MasterServer Request Host List MasterServer 请求主机列表 Request a host list from the master server Use MasterServer Get Host Data to get info on each host in the host list 请求主服务器主机列表 使用 MasterServer Get Host Data 命令在主机列表中的每个主机上获取信息 Game Type Name 游戏类型名称 The unique game type name 独特的游戏类型的名称 Host ListArrived Event 主机列表中到达的事件 Event sent when the host list has arrived NOTE The action will not Finish until the host list arrives 已经到来时 发送主机列表的事件 注 Event 处于无法完成状态 直到到达的主机列表 MasterServer Set Properties MasterServer 设置属性 Set the IP address port update rate and dedicated server flag of the master server 设置的 IP 地址 端口 更新速度标志和专用服务器的主服务器 Ip AddressIP 地址 Set the IP address of the master server 设置主服务器的 IP 地址 Port 端口 Set the connection port of the master server 设置的主服务器的连接端口 Update Rate 更新率 Set the minimum update rate for master server host information update Default is 60 seconds 设置主服务器主机上的信息更新的更新率最低 默认为 60 秒 专用服务器 Dedicated Server 专用服务器 Set if this machine is a dedicated server 设置如果这台机器是专用服务器 MasterServer Unregister Host MasterServer 注销主机 Unregister this server from the master server Does nothing if the server is not registered or has already unregistered 注销该服务器从主服务器 什么都不做 如果服务器未注册或已经未注册的 Network Close Connection 网络关闭连接 Close the connection to another system 关闭连接到另一个系统 Connection index defines which system to close the connection to from the Network connections array 连接性指数定义系统关闭的连接 从网络连接阵列 You can define the connection to close via Guid if the index is unknown 您可以定义连接关闭通过 GUID 如果该索引是未知的 If we are a client the only possible connection to close is the server connection if we are a server the target player will be kicked off 如果我们是客户的唯一可能的连接关闭与服务器的连接 如果我们的服务器 目标玩家将拉开序幕 Send Disconnection Notification enables or disables notifications being sent to the other end If disabled the connection is dropped if not a disconnect notification is reliably sent to the remote party and there after the connection is dropped 发送断开通知被发送到另一端的通知使能或禁用 如果禁用连接断开 如果不能断开通知 可靠地发送到远程连接后 有被 丢弃 Connection Index 连接性指数 Connection index to close 连接性指数关闭 Connection GUID 连接 GUID Connection GUID to close Used If Index is not set 连接 GUID 用于如果指数没有设置 Send Disconnection Notification 发送断开通知 If True send Disconnection Notification 如果为 True 发送断开通知 Network Connect 网络连接 Connect to a server 连接到服务器 Remote IP 远程 IP IP address of the host Either a dotted IP address or a domain name IP 地址的主机 无论是带点的 IP 地址或域名 Remote Port 远程端口 The port on the remote machine to connect to 在远程计算机上的端口来连接 Password 密码 Optional password for the server 在服务器的密码 可选 Error Event 错误事件 Event to send in case of an error connecting to the server 在一个错误的情况下连接到服务器发送的事件 Error String 错误字符串 Store the error string in a variable 在一个变量中存储的错误字符串 Network Destroy 网络销毁 Destroy the object across the network The object is destroyed locally and remotely Optionally remove any RPCs accociated with the object 销毁该对象在整个网络 本地和远程对象被销毁 可以删除任何的 RPC 吸附的对象 Game Object 游戏对象 The Game Object to destroy NOTE The Game Object must have a NetworkView attached 游戏对象给毁了 注 该游戏对象必须有附加一个 NetworkView Remove RPCs 删除的 RPC Remove all RPC calls associated with the Game Object 删除所有的 RPC 调用相关的游戏对象 Network Disconnect 网络断开连接 Disconnect from the server 从服务器断开连接 Network Get Player Ping 网络得到玩家 Ping 通值 Get the last average ping time to the given player in milliseconds If the player can t be found 1 will be returned Pings are automatically sent out every couple of seconds 获得最后的平均 ping 时间以毫秒为单位给定的玩家 如果玩家不能将返回 1 ping 通 每几秒钟自动发送 Player Index 玩家指数 The Index of the player in the network connections list 玩家在 网络连接 列表中的指数 Cache Player Reference 高速缓存玩家参考 The player reference is cached that is if the connections list changes the player reference remains 玩家参考被高速缓存 即如果的连接列表的变化 玩家参考保持 Every Frame 每帧 Perform this action every frame 执行此操作的每一帧 Average Ping 平均 Ping 值 Get the last average ping time to the given player in milliseconds 获得最后的平均 ping 时间以毫秒为单位指定的玩家 Player Not Found Event 玩家未找到事件 Event to send if the player can t be found Average Ping is set to 1 事件 发送如果玩家不被发现 平均平被设置为 1 Player Found Event 发现玩家事件 Event to send if the player is found pings back 事件发送如果玩家发现 Ping 值将被计算返回 Network Get Connected Player Properties 网络获取玩家的连接属性 Get connected player properties 玩家的连接属性 Index 指数 The player connection index 玩家连接索引 Ip AddressIP 地址 Get the IP address of this player 这个玩家的 IP 地址 Port 端口 Get the port of this player 得到这个播放器的端口 Guid Get the GUID for this player used when connecting with NAT punchthrough 获取 GUID 玩家 用来连接时 NAT 穿通 External IPAddress 外部 IP 地址 Get the external IP address of the network interface This will only be populated after some external connection has been made 获取外部 IP 地址的网络接口 这只会被填充后 已经取得了一些外部连接 External Port 外部端口 Get the external port of the network interface This will only be populated after some external connection has been made 获取外部端口的网络接口 这只会被填充后 已经取得了一些外部连接 Network Get Connections Count 网络获取连接数 Get the number of connected players On a client this returns 1 the server 已连接玩家的数量 在客户端 这将返回 1 服务器 Connections Count 连接数 Number of connected players 已连接玩家的数量 Every Frame 每帧 Repeat every frame 重复每一个帧 Network Get Is Message Queue Running 网络得到的消息队列运行 Get if network messages are enabled or disabled If disabled no RPC call execution or network view synchronization takes place 如果启用或禁用网络消息 如果禁用不 RPC 调用执行或网络视图同步发生 Result 导致 Is Message Queue Running If this is disabled no RPC call execution or network view synchronization takes place 消息队列运行 如果没有被禁用的 RPC 调用执行或网络视图同步发生 Network Get Last Ping 网络获得最后的 Ping 值 Get the last ping time to the given player in milliseconds If the player can t be found 1 will be returned Pings are automatically sent out every couple of seconds 获取最后一个 ping 的时间 以毫秒为单位 给定的玩家 如果玩家不能将返回 1 ping 通 每几秒钟自动发送 Player Index 玩家指数 The Index of the player in the network connections list 玩家在 网络连接 列表中的指数 Cache Player Reference 高速缓存玩家参考 The player reference is cached that is if the connections list changes the player reference remains 玩家参考被高速缓存 即如果的连接列表的变化 玩家参考保持 每帧 Every Frame 每帧 Perform this action every frame 执行此操作的每一帧 Last Ping 最后 Ping Get the last ping time to the given player in milliseconds 获取最后一个 ping 的时间 以毫秒为单位 给定的玩家 Player Not Found Event 玩家未找到事件 Event to send if the player can t be found Average Ping is set to 1 事件发送如果玩家可以不被发现 平均平被设置为 1 Player Found Event Event to send if the player is found pings back 事件发送如果玩家发现 Ping 值被计算返回 Network Get Local Player Properties 网络获取本地玩家属性 Get the local network player properties 获取本地网络玩家属性 Ip AddressP 地址 The IP address of this player 这个玩家的 IP 地址 Port 端口 The port of this player 这个玩家的端口 Guid The GUID for this player used when connecting with NAT punchthrough 此玩家的 GUID 用来连接时 NAT 穿通 External IPAddress 外部 IP 地址 The external IP address of the network interface This will only be populated after some external connection has been made 外部 IP 地址的网络接口 这只会被填充后 已经取得了一些外部连接 External Port 外部端口 Returns the external port of the network interface This will only be populated after some external connection has been made 返回的外部端口的网络接口 这只会被填充后 已经取得了一些外部连接 Network Get Maximum Connections 网络获取最大连接数 Get the maximum amount of connections players allowed 连接数 玩家允许的最高限制 Result 导致 Get the maximum amount of connections players allowed 连接数 玩家允许的最高限制 Network Get Message Player Properties 网络获取玩家消息属性 Get the network OnPlayerConnected or OnPlayerDisConnected message player info 网络获取 OnPlayerConnected 或 OnPlayerDisConnected 消息的玩家信息 Ip AddressP 地址 The IP address of this player 这个玩家的 IP 地址 Port 端口 The port of this player 这个玩家的端口 Guid The GUID for this player used when connecting with NAT punchthrough 此玩家的 GUID 用来连接时 NAT 穿通 External IPAddress 外部 IP 地址 The external IP address of the network interface This will only be populated after some external connection has been made 外部 IP 地址的网络接口 这只会被填充后 已经取得了一些外部连接 External Port 外部端口 Returns the external port of the network interface This will only be populated after some external connection has been made 返回的外部端口的网络接口 这只会被填充后 已经取得了一些外部连接 Network Get Minimum Allocatable View IDs 网络得到最低可分配的 视图 ID Get the minimum number of ViewID numbers in the ViewID pool given to clients by the server The default value is 100 获取在 ViewID 池由服务器提供给客户端的最小数目 ViewID 号码 默认值是100 The ViewID pools are given to each player as he connects and are refreshed with new numbers if the player runs out ViewID 池给每个玩家 因为他连接和新的数字被刷新 如果玩家用完 The server and clients should be in sync regarding this value Setting this higher only on the server has the effect that he sends more view ID numbers to clients than they really want Setting this higher only on clients means they request more view IDs more often for example twice in a row as the pools received from the server don t contain enough numbers 服务器和客户端应该是同步的 关于这个值 设置更高版本的服务器上的效果 他查看 ID 号发送到客户 他们真正想要的 设置更高版本客户端上 这意味着更多的时候 他们要求更多的视图 ID 例如连续两次 从服务器接收到的池不包含足够 的数目 Result 导致 Get the minimum number of ViewID numbers in the ViewID pool given to clients by the server The default value is 100 获取在 ViewID 池由服务器提供给客户端的最小数目 ViewID 号码 默认值是 100 Network Get On FailedToConnect Properties 网络获得无法连接属 性 Get the network OnFailedToConnect or MasterServer OnFailedToConnectToMasterServer connection error message 获取网络的 OnFailedToConnect 或 MasterServer OnFailedToConnectToMasterServer 连接错误消息 Error Label 错误标签 Error label 错误标签 No Error Event 没有错误事件 No error occurred 未发生错误 RSAPublic Key Mismatch EventRSAPublic 密钥不匹配事件 We presented an RSA public key which does not match what the system we connected to is using 我们提出了一个 RSA 公共密钥不匹配我们连接到的系统使用的是什么 Invalid Password Event 无效的密码事件 The server is using a password and has refused our connection because we did not set the correct password 服务器使用的密码 并拒绝我们的连接 因为我们没有设置正确的密码 Connection Failed Event 连接失败事件 onnection attempt failed possibly because of internal connectivity problems onnection 尝试失败了 可能是因为内部的连接问题 TooMany Connected Players Event 太多的连接玩家事件 The server is at full capacity failed to connect 服务器满负荷运转 无法连接 Connection Banned Event 连接被禁止的活动 We are banned from the system we attempted to connect to likely temporarily 我们被禁止的系统中 我们试图连接到 可能是暂时的 Already ConnectedToServer Event 已经连接到服务器事件 We are already connected to this particular server can happen after fast disconnect reconnect 我们已经连接到这个特定的服务器 可以发生后快速断开 重新连接 Already ConnectedToAnother Server Event 已经连接到另一台服务器事件 Cannot connect to two servers at once Close the connection before connecting again 无法连接到两台服务器一次 关闭连接 再重新连接 Create Socket Or Thread Failure Event 创建套接字或线程失败事件 Internal error while attempting to initialize network interface Socket possibly already in use 内部错误 同时尝试初始化网络接口 可能已经在使用的插座 Incorrect Parameters Event 不正确的参数事件 Incorrect parameters given to Connect function 不正确的参数给连接功能 Empty Connect Target Event 空连接目标事件 No host target given in Connect 在连接的任何主机目标 Internal Direct Connect Failed Event 内部直接连接失败事件 Client could not connect internally to same network NAT enabled server 客户端无法连接到同一网络上启用 NAT 服务器内部 NATTarget Not Connected EventNATTarget 未连接事件 The NAT target we are trying to connect to is not connected to the facilitator server NAT 目标 我们正试图连接到没有连接的推动者服务器 NATTarget Connection Lost EventNATTarget 连接丢失事件 Connection lost while attempting to connect to NAT target 连接丢失而试图连接到 NAT 目标 NATPunchthrough Failed EventNATPunchthrough 失败事件 NAT punchthrough attempt has failed The cause could be a too restrictive NAT implementation on either endpoints NAT 穿通的尝试已经失败 其原因可能是过于严格的 NAT 实现的任端点 Network Get Next Connected Player Properties 网络获取下一个连 接玩家的属性 Get the next connected player properties Each time this action is called it gets the next child of a GameObject This lets you quickly loop through all the connected player to perform actions on them 获取下一个连接玩家的性能 每一次它获取下一个的 GameObject This 的孩子 这个动作被称为可让您快速遍历所有连 接的玩家 它们执行这些操作 Loop Event 循环事件 Event to send for looping 事件循环发送 Finished Event 完成事件 Event to send when there are no more children 发送事件时当没有更多的孩子 Index 指数 The player connection index 玩家连接索引 Ip AddressIP 地址 Get the IP address of this player 这个玩家的 IP 地址 Port 端口 Get the port of this player 得到这个播放器的端口 Guid Get the GUID for this player used when connecting with NAT punchthrough 获取 GUID 播放器 用来连接时 NAT 穿通 External IPAddress 外部 IP 地址 Get the external IP address of the network interface This will only be populated after some external connection has been made 获取外部 IP 地址的网络接口 这只会被填充后 已经取得了一些外部连接 External Port 外部端口 Get the external port of the network interface This will only be populated after some external connection has been made 获取外部端口的网络接口 这只会被填充后 已经取得了一些外部连接 Network Get Send Rate 网络获取发送速率 Store the current send rate for all NetworkViews 存储当前的发送速率为所有 NetworkViews Send Rate 发送速率 Store the current send rate for NetworkViews 存储当前的发送速率 NetworkViews Network Get Time 网络获取时间 Get the current network time seconds 获取当前网络的时间 秒 Time 时间 The network time 网络时间 Network Have Public Ip Address 网络有公共 IP 地址 Check if this machine has a public IP address 如果这台机器有一个公共的 IP 地址 Have Public Ip Address 有公网
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 物流仓储外包合同范本
- 调酒用品采购合同范本
- 私人餐厅采购合同范本
- 租赁高空架子合同范本
- 物品改造劳动合同范本
- 甲方租赁设备合同范本
- 私人钢管租赁合同范本
- 绵阳小区保洁合同范本
- 民间借钱合法合同范本
- 购房协议等于购房合同
- 临床技术操作规范麻醉学分册
- CNAS-CC121-2017 环境管理体系审核及认证的能力要求
- 电力工程项目中八大员的具体职责
- 纪念九·一八:致敬那场永不妥协的抗争-主题班会课件
- 铂耐药复发性卵巢癌诊治中国专家共识(2025年版)解读课件
- 《人工智能基础与应用-(AIGC实战 慕课版)》全套教学课件
- 2025年护士执业资格考试题库(社区护理学专项)-社区护理护理法律法规试题
- 第一单元 从感知到物联 第2课传感之古今未来 教学设计2024-2025学年 人教版新教材 初中信息技术八年级上册
- 2024年同等学力申硕《英语》试题真题及答案
- 胃疡病中医护理查房
- 水泥电杆行业分析报告
评论
0/150
提交评论