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

RegisterHandler() works in the editor, but not in a build

$
0
0
I'm trying to register handlers for custom network messages. It works flawlessly in the editor, but now when I'm doing the same on a build.

When I'm trying to register a serverside handler as this, the NetworkManager HUD's host / server button doesn't execute anything past the RegisterHandler().

Code (CSharp):
  1.  
  2. public class NetMessage
  3. {
  4.     public const short CHAT_MSG = MsgType.Highest + 1;
  5.     public const short PLAYER_INFO = MsgType.Highest + 2;
  6. }
  7.  
  8. public class Shared_NetHandler
  9. {...
RegisterHandler() works in the editor, but not in a build

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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