Search Unity

NetworkManager.maxConnections not working? Why?

Discussion in 'Multiplayer' started by craig4android, Nov 20, 2020.

  1. craig4android

    craig4android

    Joined:
    May 8, 2019
    Posts:
    124
    Hi I can't limit the maximum Number of player, is it a bug or am I doing something wrong?

    Code (CSharp):
    1. NetworkManager.maxConnections=3
     
  2. luke-unity

    luke-unity

    Joined:
    Sep 30, 2020
    Posts:
    306
    I'm not sure whether you can set maxConnections that way. Checkout the answers here on how to set max connections.
     
  3. craig4android

    craig4android

    Joined:
    May 8, 2019
    Posts:
    124
    hmm it seems to work but only if you start in server mode, not in host mode