NetworkDiscovery is a class that allows Unity application using the networking system find each other on a local network.
Property: | Function: | |
---|---|---|
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. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information