I have my network manager and i’m doing a custom UI for it. I have two buttons and a input field where address has to be entered, quite simple.
The host button calls NetworkManager.StartHost ().
The client button changes NetworkManager.networkAddress based on the input field value and calls NetworkManager.StartClient ().
The problem is that if there is no host at the address i’m getting two exceptions in the editor:
DNS resolution failed 11001
UNET client error connect error: 11
How i can prevent exceptions from showin in editor?
And how i can know StartClient () has failed to connect? void OnFailedToConnect function seems to not be called, but i suspect this can be related to the exceptions.