お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeネットワークでつながれたプレイヤー情報
With this you can, for example, send a message directly to another player.
externalIP | ネットワークインタフェースの外部IP アドレス |
externalPort | ネットワークインタフェースの外部ポート |
guid | NATパンチスルーで接続するときに使用されるプレイヤーのGUID |
ipAddress | プレイヤーのIP アドレス |
port | プレイヤーのポート |
ToString | このネットワークプレイヤーの index 番号を戻り値とします |
operator != | もし二人の NetworkPlayers が同一プレイヤーの場合 true を返します |
operator == | もし二人の NetworkPlayers が同一プレイヤーでない場合 true を返します |