<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [BaseEntityController](./server.baseentitycontroller.md) &gt; [spawn](./server.baseentitycontroller.spawn.md)

## BaseEntityController.spawn() method

Override this method to handle the spawning of an entity to your entity controller.

**Signature:**

```typescript
spawn(entity: Entity): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

entity


</td><td>

[Entity](./server.entity.md)


</td><td>

The entity to spawn.


</td></tr>
</tbody></table>
**Returns:**

void

