用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:networkplayer:networkplayer

NetworkPlayer 网络玩家

struct in UnityEngine

Description 描述

The NetworkPlayer is a data structure with which you can locate another player over the network.

网络玩家是指你可以在网络中查找另一个玩家的数据结构。

With this you can, for example, send a message directly to another player.

使用该属性你可以,例如,直接给另一个玩家发送消息。

Variables 变量

externalIPReturns the external IP address of the network interface.
返回网络接口的外部IP地址。
externalPortReturns the external port of the network interface.
返回网络接口的外部端口。
guidThe GUID for this player, used when connecting with NAT punchthrough.
玩家的全局唯一标识符,与NAT连接时使用。
ipAddressThe IP address of this player.
该玩家的IP地址。
portThe port of this player.
该玩家的端口。

Public Functions 公共函数

ToStringReturns the index number for this network player.
返回该网络玩家的索引数字。

Operators 运算符

operator!=Returns true if two NetworkPlayers are not the same player.
如果两个网络玩家是不同的玩家返回true。
operator==Returns true if two NetworkPlayers are the same player.
如果两个网络玩家是相同的玩家那么返回true。
script/unityengine/classes/networkplayer/networkplayer.txt · 最后更改: 2016/08/02 05:34 (外部编辑)