Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Network.Destroy

public static void Destroy(NetworkViewID viewID);

Description

Destroy the object associated with this view ID across the network.

The object is destroyed locally and remotely.

Note that this does not remove any RPCs accociated with the object or NetworkViewID, these have to be explicitly removed with the Network.RemoveRPCs method.

no example available in C#

public static void Destroy(GameObject gameObject);

Description

Destroy the object across the network.

The object is destroyed locally and remotely.

no example available in C#

Did you find this page useful? Please give it a rating: