docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NetworkHide

    NetworkHide(ulong)

    Hides the NetworkObject from the targeted client.

    Declaration
    public void NetworkHide(ulong clientId)
    Parameters
    Type Name Description
    ulong clientId

    The targeted client

    Remarks

    Usage: Use to stop sending updates to the targeted client, "netcode invisible", for a currently visible NetworkObject.

    Dynamically Spawned: NetworkObjects will be despawned and destroyed on the targeted client's side.
    In-Scene Placed: NetworkObjects will only be despawned on the targeted client's side.

    See Also:
    NetworkHide(List<NetworkObject>, ulong)
    NetworkShow(ulong) or NetworkShow(List<NetworkObject>, ulong)

    NetworkHide(List<NetworkObject>, ulong)

    Hides a list of NetworkObjects from the targeted client.

    Declaration
    public static void NetworkHide(List<NetworkObject> networkObjects, ulong clientId)
    Parameters
    Type Name Description
    List<NetworkObject> networkObjects

    The NetworkObjects that will become "netcode invisible" to the targeted client

    ulong clientId

    The targeted client

    Remarks

    Usage: Use to stop sending updates to the targeted client, "netcode invisible", for the currently visible NetworkObjects.

    Dynamically Spawned: NetworkObjects will be despawned and destroyed on the targeted client's side.
    In-Scene Placed: NetworkObjects will only be despawned on the targeted client's side.

    See Also:
    NetworkHide(ulong)
    NetworkShow(ulong) or NetworkShow(List<NetworkObject>, ulong)

    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)