Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

OnStartClient() - not called after StopClient()

Discussion in 'Multiplayer' started by Miscellaneous, Feb 22, 2016.

  1. Miscellaneous

    Miscellaneous

    Joined:
    Sep 24, 2013
    Posts:
    53
    When executing a project, NetworkBehaivor.OnStartClient() is called (once).

    I would assume when executing NetworkManager.StopClient() and reconnect again, shouldn't NetworkBehaivor.OnStartClient() be called again?

    In my case the NetworkBehaivor in question isn't the Player Object, but since the manual dictates "OnStartClient is called on every NetworkBehaviour when it is activated on a client." I can imagine this is a bug, or some explanation would be appreciated.
     
    Last edited: Feb 22, 2016
  2. Honeystain

    Honeystain

    Joined:
    Mar 12, 2017
    Posts:
    2
    Hey dude, you figured out a solution to this yet? I have the exact same problem.