Class NetworkManagerHelper
  Specialized editor specific NetworkManager code
 
  
  
    Inheritance
    
    NetworkManagerHelper
   
  
  
  Assembly: Unity.Netcode.Editor.dll
  Syntax
  
    public class NetworkManagerHelper
   
  Methods
  
  CheckAndNotifyUserNetworkObjectRemoved(NetworkManager, bool)
  Handles notifying users that they cannot add a NetworkObject component
to a GameObject that also has a NetworkManager component. The NetworkObject
will always be removed.
GameObject + NetworkObject then NetworkManager = NetworkObject removed
GameObject + NetworkManager then NetworkObject = NetworkObject removed
Note: Since this is always invoked after NetworkManagerCheckForParent
we do not need to check for parent when searching for a NetworkObject component
 
  
  Declaration
  
    public void CheckAndNotifyUserNetworkObjectRemoved(NetworkManager networkManager, bool editorTest = false)
   
  Parameters
  
  
  NetworkManagerAndNetworkObjectNotAllowedMessage()
  
  
  Declaration
  
    public string NetworkManagerAndNetworkObjectNotAllowedMessage()
   
  Returns
  
  
  NotifyUserOfNestedNetworkManager(NetworkManager, bool, bool)
  Handles notifying the user, via display dialog window, that they have nested a NetworkManager.
When in edit mode it provides the option to automatically fix the issue
When in play mode it just notifies the user when entering play mode as well as when the user
tries to start a network session while a NetworkManager is still nested.
 
  
  Declaration
  
    public bool NotifyUserOfNestedNetworkManager(NetworkManager networkManager, bool ignoreNetworkManagerCache = false, bool editorTest = false)
   
  Parameters
  
  Returns