Hello, I don’t understand how to add network discovery event on Mirror component, on my script code I have provide
public void OnDiscovery(Mirror.Discovery.ServerResponse response)
{
}
but on Uniy I can’t see the event, thank you, Cheers…
Hello, I don’t understand how to add network discovery event on Mirror component, on my script code I have provide
public void OnDiscovery(Mirror.Discovery.ServerResponse response)
{
}
but on Uniy I can’t see the event, thank you, Cheers…
It should be as simple as that, can you show me your class?
Hello, many thanks for your interest, next a short of my script where I would like to call a discovery class method when a client found a server on LAN :
I have manually added the OnServerFound but the code doesn’t work, Cheers…
I just realized what you did. You dragged the script directly into the event.
Try this instead:
Yes, sorry, I have dragged the game object that contains the script and then the component recognized the method, thank you for all, Cheers…