Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Feedback NetworkBehaviours require a Networkobject window on click

Discussion in 'Netcode for GameObjects' started by edin97, Aug 25, 2023.

  1. edin97

    edin97

    Joined:
    Aug 9, 2021
    Posts:
    58
    I upgraded from NGO 1.0.0 prev6 to 1.5.2 today.

    The issue is : every time I click on a GameObject with a NetworkBehaviour script, I get this window, which I don't want... :

    upload_2023-8-25_19-11-3.png
    I need a "No - Do not show me this message again". or disable this window in my unity settings somewhere.

    I know I need a NetworkObject, I don't want to add it now for x reasons. It slows me down so much atm.

    Please and thanks in advance.
     
  2. cerestorm

    cerestorm

    Joined:
    Apr 16, 2020
    Posts:
    612
    I don't see an option to disable that but if you're desperate you can modify the script that does the check (NetworkBehaviourEditor.cs). Probably the simplest way is to check out NGO to you PC, comment out the check, and replace the NGO package in Package Manager with the one you've checked out.

    You'll have to see what branch is checked out as it might be develop, if it is and you don't want the latest changes then change the branch to 1.5.2.
     
    edin97 likes this.
  3. jackward84

    jackward84

    Joined:
    Jan 26, 2017
    Posts:
    87
    It's really annoying you can't turn this off, but an easy workaround is to add the networkobject it's asking for and then disable the networkobject component. Then it won't ask for it again, and it still won't cause problems with nested network objects.
     
    edin97 and cerestorm like this.
  4. edin97

    edin97

    Joined:
    Aug 9, 2021
    Posts:
    58
    Oh I see ! Thank you for your response, I might try it if I have this issue once I update again ! (I downgraded back to 1.0.0)

    Oh okay ! That's nice, thank you ! In version 1.0.0 I can't disable the NetworkObject component. (also I'm on Unity 2020.3.20f1 which might be the issue idk) I guess that's possible to do in v-1.5.2 for example ? (As I said I downgraded back to 1.0.0, so I can't check that now unfortunately)

    But thank you for your suggestions !