Search Unity

How to make NetworkBehaviour act like a MonoBehaviour in Single Player Mode

Discussion in 'Multiplayer' started by hakankaraduman, Nov 6, 2017.

  1. hakankaraduman

    hakankaraduman

    Joined:
    Aug 27, 2012
    Posts:
    354
    I realize that gameobjects with a NetworkBehaviour and NetworkIdentity scripts get disabled if you don't use a network manager, aka in a single player mode scene.

    How do I workaround that behaviour?

    I want my code to run on single player if it's a localPlayer, without changing anything.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    This seems to get asked frequently. The easiest solution is to just local host the game.