docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkManagerHelper

    Specialized editor specific NetworkManager code

    Inheritance
    object
    NetworkManagerHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.Editor
    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
    Type Name Description
    NetworkManager networkManager
    bool editorTest

    NetworkManagerAndNetworkObjectNotAllowedMessage()

    Declaration
    public string NetworkManagerAndNetworkObjectNotAllowedMessage()
    Returns
    Type Description
    string

    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
    Type Name Description
    NetworkManager networkManager
    bool ignoreNetworkManagerCache
    bool editorTest
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)