Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Issues with NetworkTransport.AddHost

$
0
0
So, a year ago or so I was working on a project. I started working on it again recently. I decided to update Unity (to 5.2.3f1) and give it a whirl.

Part of my problem here is from me trying to run multiple instances of the project on the same system, so I can't quite use the same port. Now, the following code used to work without pausing Unity:

Code (csharp):
  1. retry_count = 0;
  2. _portGameplay = m_portGameplay;
  3. _hostGameplay = NetworkTransport.AddHost(topology, _portGameplay); //Pauses
  4. while...
Issues with NetworkTransport.AddHost

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>