Version: 2018.2

GlobalConfig

class in UnityEngine.Networking

マニュアルに切り替える

説明

ネットワークライブラリのグローバルパラメータを定義します。

NetworkManager には、GlobalConfig インスタンス (NetworkManager.globalConfig) があり、NetworkManager によってネットワークが開始された場合、設定に使用されます。

このインスタンスの属性のいくつかは、エディターの NetworkManager インスペクター UI から変更できます。

変数

ConnectionReadyForSendDefines the callback delegate which you can use to get a notification when a connection is ready to send data.
MaxHostsDefines how many hosts you can use. Default Value = 16. Max value = 128.
MaxNetSimulatorTimeoutDeprecated. Defines maximum delay for network simulator. See Also: MaxTimerTimeout.
MaxPacketSizeすべての接続のためのバイト単位の受け入れ可能な最大パケットサイズを定義します。
MaxTimerTimeoutDefines the maximum timeout in milliseconds for any configuration. The default value is 12 seconds (12000ms).
MinNetSimulatorTimeoutDeprecated. Defines the minimal timeout for network simulator. You cannot set up any delay less than this value. See Also: MinTimerTimeout.
MinTimerTimeoutDefines the minimum timeout in milliseconds recognised by the system. The default value is 1 ms.
NetworkEventAvailableDefines the callback delegate which you can use to get a notification when the host (defined by hostID) has a network event. The callback is called for all event types except NetworkEventType.Nothing.See Also: NetworkEventType
ReactorMaximumReceivedMessagesThis property determines the initial size of the queue that holds messages received by Unity Multiplayer before they are processed.
ReactorMaximumSentMessagesDefines the initial size of the send queue. Messages are placed in this queue ready to be sent in packets to their destination.
ReactorModelネットワークライブラリではリアクターモデルが定義されています。
ThreadAwakeTimeout次を定義します:(1)選択リアクターについて、送信するメッセージがある場合、最短時間内でシステムがチェックするとき (2)固定リアクターについて、システムは最小時間間隔で送受信するメッセージをチェックするとき
ThreadPoolSizeDefines how many worker threads are available to handle incoming and outgoing messages.

コンストラクタ

GlobalConfig新規でグローバル設定オブジェクトを作成します。