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.
  2. Dismiss Notice

Feature Request Annoyed by "NetworkBehaviours require a NetworkObject" pop-up

Discussion in 'Netcode for GameObjects' started by Sord, Apr 15, 2023.

  1. Sord

    Sord

    Joined:
    Jan 13, 2014
    Posts:
    10
    I have structure:

    A: MultiplayerPlayerPrefabRoot, <- home of NetworkObject
    B: LocalPlayerPrefabRoot
    C: [Structure of stuff]
    I think that's just fine structure and it doesn't have anything inherently bad with it.
    However Network for GameObjects thinks that this is very bad structure and should not be used.
    Why?

    Because that part C contains scripts that are able to work with offline and online cases so therefore they must be inherited from NetworkBehavior. When working with MultiplayerPlayerPrefab everything is just fine but when working on LocalPlayerPrefabRoot it's very frustrating due constant yelling about adding NetworkObect which is required in context of this prefab. This can be fixed of course by changing structure but I think this is bit unnecessary constraint.

    Therefore: Can we get "No - and do not show this dialog again"-option?
     
    codeBatt likes this.
  2. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    426
    Hi @Sord , can you please open a feature request here?

    In this way, the team behind Netcode For GameObject will be able to prioritize your feature, and you'll be automatically updated about its status.
     
  3. codeBatt

    codeBatt

    Joined:
    Feb 12, 2020
    Posts:
    40
    I aggree, it creates many complexity and mess