ネットワーク実装の中心となるコア機能を提供します。
このクラスはネットワーク インタフェースおよび全てのネットワークのパラメータを設定します。 これを使用して サーバのセットアップ、サーバのひとつに接続でき、また多くのヘルパー関数によりそれらのタスクをサポートできます。 エディタで公開されている部分に関する詳細は Network Manger コンポーネントリファレンスを参照して下さい。
| connections | 接続された全てのプレイヤーの配列 |
| connectionTesterIP | The IP address of the connection tester used in Network.TestConnection. |
| connectionTesterPort | The port of the connection tester used in Network.TestConnection. |
| incomingPassword | サーバーのパスワード(入接続) |
| isClient | ピアタイプがクライアントの場合はtrue |
| isMessageQueueRunning | ネットワークメッセージの処理の有効/無効 |
| isServer | ピアタイプがサーバーの場合はtrue |
| logLevel | ネットワークメッセージのログレベル(デフォルトはオフ) |
| maxConnections | プレイヤーの最大接続数 |
| minimumAllocatableViewIDs | サーバーによってクライアントに与えられたViewIDの最小値 |
| natFacilitatorIP | NATのパンチスルーを介入させるIPアドレス |
| natFacilitatorPort | NATのパンチスルーを介入させるポート |
| peerType | ピアタイプの状態(切断、接続、サーバー、クライアントなど) |
| player | ローカルのNetworkPlayerクラスのインスタンス |
| proxyIP | プロキシサーバーのIPアドレス |
| proxyPassword | プロキシのパスワード |
| proxyPort | プロキシサーバーのポート |
| sendRate | 全てのネットワークビューのデフォルト更新間隔 |
| time | 現在のネットワーク時間(秒単位) |
| useProxy | Indicate if proxy support is needed, in which case traffic is relayed through the proxy server. |
| AllocateViewID | 次に使用可能なネットワークのView ID 割り当てます(予約) |
| CloseConnection | 他のシステムへの接続を解除します |
| Connect | 指定したホスト(IPアドレスまたはドメイン名)のサーバーポートに接続します |
| Destroy | ViewIDに関連付けられたオブジェクトを破棄します |
| DestroyPlayerObjects | Destroy all the objects based on view IDs belonging to this player. |
| Disconnect | 接続をすべて閉じてネットワークインタフェースをシャットダウンします |
| GetAveragePing | プレイヤーの平均ping時間(ミリ秒)を取得します |
| GetLastPing | プレイヤーの最後に返されたping時間(ミリ秒) |
| HavePublicAddress | パブリックIPアドレスを所持しているか確認します |
| InitializeSecurity | セキュリティ情報を初期化します |
| InitializeServer | サーバーを初期化します |
| Instantiate | プレハブをインスタンス化します |
| RemoveRPCs | 対象のプレイヤーのIDに属している、すべてのRPC関数を削除します |
| RemoveRPCsInGroup | 特定のグループ番号に属する、すべてのRPC関数を削除します |
| SetLevelPrefix | すべてのネットワークのViewIDの番号に前置きされる、レベルの接頭辞を設定します |
| SetReceivingEnabled | 特定のプレイヤーから特定のグループ番号への、メッセージの受信の有効/無効を設定します |
| SetSendingEnabled | 特定のネットワークグループ番号での、メッセージとRPC コールの送信の有効/無効を設定します |
| TestConnection | ネットワーク接続のテストを行います |
| TestConnectionNAT | NATパンチスルー接続用に特別に接続をテストします |
| OnConnectedToServer | Called on the client when you have successfully connected to a server. |
| OnDisconnectedFromServer | Called on client during disconnection from server, but also on the server when the connection has disconnected. |
| OnFailedToConnect | Called on the client when a connection attempt fails for some reason. |
| OnNetworkInstantiate | Called on objects which have been network instantiated with Network.Instantiate. |
| OnPlayerConnected | Called on the server whenever a new player has successfully connected. |
| OnPlayerDisconnected | Called on the server whenever a player is disconnected from the server. |
| OnSerializeNetworkView | Used to customize synchronization of variables in a script watched by a network view. |
| OnServerInitialized | Called on the server whenever a Network.InitializeServer was invoked and has completed. |