Version: 5.6
NetworkConnection
NetworkIdentity

NetworkDiscovery

NetworkDiscovery is a class that allows Unity application using the networking system find each other on a local network.

Свойства

Свойство: Функция:
broadcastPort The port to broadcast on.
broadcastKey The key to broadcast.
broadcastVersion The major version to include in the broadcast.
broadcastSubVersion The minor version to include in the broadcast.
broadcastInterval How often in seconds to broadcast.
useNetworkManager True to use NetworkManager settings for broadcasting and auto-join games found.
broadcastData Custom data to include in the broadcast.
showGUI True to show the default broadcast GUI in play mode.
offsetX The x offset of the broadcast GUI.
offsetY The y offset of the broadcast GUI.
hostId The host Id being used to broadcast (read-only).
running True if currently broadcasting.
isServer True is broadcasting as a server.
isClient True if listening for broadcasts as a client.
broadcastsReceived A list of broadcast messages received.
NetworkConnection
NetworkIdentity
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961