Search Unity

Network.isServer always false

Discussion in 'Multiplayer' started by Lelon, Jul 20, 2015.

  1. Lelon

    Lelon

    Joined:
    May 24, 2015
    Posts:
    79
    I can't get Network.isServer to work, I tried to use it in a player object as well as other objects, but it always return false even tho im the server. I'm using lan host.

    Edit: Problem fixed, I had to use isServer without Network.
     
    Last edited: Jul 20, 2015
  2. ikriz

    ikriz

    Joined:
    Dec 3, 2009
    Posts:
    98
    There is also the NetworkServer.active and NetworkClient.active these actually do work, the Network.isServer should be marked obsolete in my opinion.

     
    CloudyVR likes this.