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)