Method Despawn
Despawn(bool)
Despawns the GameObject of this NetworkObject and sends a destroy message for it to all connected clients.
Declaration
public void Despawn(bool destroy = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | destroy | (true) the GameObject will be destroyed (false) the GameObject will persist after being despawned |