docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CheckForNetworkObject

    CheckForNetworkObject(GameObject, bool)

    Used to determine if a GameObject has one or more NetworkBehaviours but does not already have a NetworkObject component. If not it will notify the user that NetworkBehaviours require a NetworkObject.

    Declaration
    public static void CheckForNetworkObject(GameObject gameObject, bool networkObjectRemoved = false)
    Parameters
    Type Name Description
    GameObject gameObject

    GameObject to start checking for a NetworkObject

    bool networkObjectRemoved

    used internally

    In This Article
    Back to top
    Copyright © 2024 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)