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

Issues With OnClientCallback Events

Discussion in 'Netcode for GameObjects' started by Jengstrom_, Jun 22, 2022.

  1. Jengstrom_

    Jengstrom_

    Joined:
    Dec 5, 2021
    Posts:
    1
    Hi there,

    Just trying to create a simple lobby at the moment to update client names to show when they leave or join a server. However I seem to be having trouble using:
    • NetworkManager.Singleton.OnClientConnectedCallback
    • NetworkManager.Singleton.OnClientDisconnectCallback
    As for some reason these events seem to be called before the server is updated? Am I using these events wrong or is there a bug in the execution order of these events?

    Thanks,
    John