struct in UnityEngine
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.
使用该属性你可以,例如,直接给另一个玩家发送消息。
externalIP | Returns the external IP address of the network interface. 返回网络接口的外部IP地址。 |
externalPort | Returns the external port of the network interface. 返回网络接口的外部端口。 |
guid | The GUID for this player, used when connecting with NAT punchthrough. 玩家的全局唯一标识符,与NAT连接时使用。 |
ipAddress | The IP address of this player. 该玩家的IP地址。 |
port | The port of this player. 该玩家的端口。 |
ToString | Returns the index number for this network player. 返回该网络玩家的索引数字。 |
operator!= | Returns true if two NetworkPlayers are not the same player. 如果两个网络玩家是不同的玩家返回true。 |
operator== | Returns true if two NetworkPlayers are the same player. 如果两个网络玩家是相同的玩家那么返回true。 |