Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#
Method group is Obsolete

NetworkServer.Destroy

Obsolete public static void Destroy(GameObject obj);

Parameters

objGame object to destroy.

Description

Destroys this object and corresponding objects on all clients.

In some cases it is useful to remove an object but not delete it on the server. For that, use NetworkServer.UnSpawn() instead of NetworkServer.Destroy().

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