com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
NetworkBehaviourEditor.CheckForNetworkObject pop-up should allow to dismiss it forever on "this machine" without auto-adding a NetworkObject.
Is your feature request related to a problem? Please describe. IMHO, it's a valid use case to have a NetworkObject at the root of some prefab and NetworkBehaviours nested under, but encapsulated in some sub-prefabs (without NetworkObjects). We have a lot of these in our project and we keep getting spammed by this pop-up that we have to dismiss every time.
One example of such use-case: Timelines with activation track. Having a Timeline with a NetworkObject and nested objects with NetworkBehaviours being activated / deactivated wouldn't work if they had NetworkObjects on them (because of them being nested further down the hierarchy).
Describe the solution you'd like A fourth button that says "No (I don't need it)" that remembers that for this machine and never prompt us again.
Describe alternatives you've considered
Overriding all NetworkBehaviours to use a custom Editor to prevent them from calling that check:
That works, but not for the check located in the OnDestroy method of the NetworkObjectEditor because NetworkObject is sealed
.