# Lifecycle

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

A spawned copy is either new or taken from a pool. Both get the same events, but a pooled copy keeps its structure and gets its values reset.

- A new copy runs `Ready`, then `OnSpawned()`.
- A pooled copy gets the values it had when it was built: component fields, child poses and enabled flags, and every script field back to its default and its prefab value. `Ready` does not run again, `OnSpawned()` does.
- `Despawn` runs `OnDespawned()`, turns the copy off at once and parks it at the end of the frame: its coroutines and signal connections end, its scripts stop, and it moves under a disabled `Pool` node.
- Components and children added while the copy was out stay; the pool resets values, not structure.
- A physics body keeps its velocity across a respawn. Set it in `OnSpawned`.
- `Spawn` sets the pose of 2D copies only; 3D copies keep the prefab's pose.
