- Home /
Why can't I pass NetworkClient to server? (UNet)
When I try to declare a NetworkClient variable, I get a UNetWeaver error: "...UnityEngine.Networking.NetworkConnection::hostId' is declared in another module ..."
Example:
public NetworkClient client;
Why can't I declare a NetworkClient variable? I would like to have a dictionary containing all my clients and an ID on my server. How can I do that?
I figured out another way to solve my problem. A way that works, but not the right way to do it. The question still stands for future reference.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
What's the best approach for creating a secure authorative server? 0 Answers
Server still sending Packets to inactive clients and throwing errors. How can I stop it? 0 Answers
Network how to send data/activate function 1 Answer
ClientRpc not called on Client 1 Answer