Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug NGO handler is null, getting an error. Trying to connect client with UI

Discussion in 'Netcode for GameObjects' started by codingfruits, Jun 11, 2023.

  1. codingfruits


    Nov 28, 2022
    I'm trying to do a create game join game system with buttons, but whenever I hit join after create (what works), I get a nice error:
    Here is the UI script:

    So I guess what's happening is that the handler is null because the host gives messages to the client which it doesnt know about. How can I fix this issue?
  2. RikuTheFuffs-U


    Unity Technologies

    Feb 20, 2020
    Hi @codingfruits ,
    1) what's he workflow you're using? Are you clicking "Join" from the same game instance, or are you using ParrelSync / MultiplayerPlayMode?

    2) Is there a reason why you're loading the scene manually? NGO has a default scene management that will load it for you.