Relative Content

Tag Archive for c#unity-game-enginecrashtcpclient

Unity client crashes when server is unreachable

So I’m working on a very basic app that requires basic networking. I am specifically getting an issue where if the client running in Unity cannot connect to the server the unity application crashes. This happens both in the editor and in a build. I’m not fully sure why this would happen, because the code that I believe is causing the error is inside a try-catch statement. The other important thing to note is that I am currently running the server locally, and when the server is running the app performs as expected, its only when the server is not initialized or unreachable that the project crashes.