# Spawn and Despawn

In **ObjectNet**, spawning and despawning are essential operations for managing networked objects across all connected clients. These features ensure that when objects are created or destroyed, the changes are synchronized across the entire multiplayer session.

{% hint style="info" %}
Spawning and Despawning only applies to registered NetworkObjects to spawn a normal object across the network use Rpc's [network-methods](https://onlineobject.gitbook.io/objectnet/general/network-behaviour/network-methods "mention")
{% endhint %}

## Automatic Prefab Detection

ObjectNet automatically detects when a **NetworkObject** is created on the **server**. Once the object is instantiated on the server, it sends a notification to all connected clients to spawn the same object, ensuring synchronization across the network.

This functionality is powered by the **`NetworkInstantiateDetection`** script, which is automatically attached to all **NetworkObjects**. This script handles the detection and communication process seamlessly, so you don’t need to manually manage synchronization for networked objects.

<figure><img src="https://content.gitbook.com/content/NG75ky1pR1kRokWLRnzy/blobs/jmLtTI3DBYzwLWEo8hBK/Screenshot%202025-01-18%20004140.png" alt="" width="563"><figcaption></figcaption></figure>
