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

Host ID not set for local client?

$
0
0
The short story:

In my custom NetworkManager I've got:

Code (CSharp):
  1.  
  2. public override void OnMatchCreate(CreateMatchResponse matchResponse)
  3. {
  4.     client = StartHost();
  5.     Debug.Log(client.connection.hostId);
  6. }
  7.  
The output is "-1"

Which is a problem because...

The longer story:

I'm trying to call NetworkTransport.GetRemoteDelayTimeMS() to try and get some sort of network synced time but the only hostId I can seem to get is -1, which gives an error if I pass it in:

Host ID not set for local client?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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