LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkDiscovery.OnReceivedBroadcast

public void OnReceivedBroadcast(string fromAddress, string data);

Parameters

fromAddressThe IP address of the server.
dataThe data broadcast by the server.

Description

This is a virtual function that can be implemented to handle broadcast messages when running as a client.