docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveHandler

    RemoveHandler(GameObject)

    Use the GameObject of the overridden network prefab asset to remove a registered class that implements the INetworkPrefabInstanceHandler interface.

    Declaration
    public bool RemoveHandler(GameObject networkPrefabAsset)
    Parameters
    Type Name Description
    GameObject networkPrefabAsset

    GameObject of the network prefab asset that was being overridden

    Returns
    Type Description
    bool

    true (success) or false (failure)

    RemoveHandler(NetworkObject)

    Use the NetworkObject of the overridden network prefab asset to remove a registered class that implements the INetworkPrefabInstanceHandler interface.

    Declaration
    public bool RemoveHandler(NetworkObject networkObject)
    Parameters
    Type Name Description
    NetworkObject networkObject

    NetworkObject of the source NetworkPrefab that was being overridden

    Returns
    Type Description
    bool

    true (success) or false (failure)

    RemoveHandler(uint)

    Use the GlobalObjectIdHash of the overridden network prefab asset to remove a registered class that implements the INetworkPrefabInstanceHandler interface.

    Declaration
    public bool RemoveHandler(uint globalObjectIdHash)
    Parameters
    Type Name Description
    uint globalObjectIdHash

    GlobalObjectIdHash of the source NetworkPrefab that was being overridden

    Returns
    Type Description
    bool

    true (success) or false (failure)

    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)