# SpawnPrefabOptions

> Talos 0.7 · Since 0.6

{@link SpawnOptions} that spawn a copy of a prefab file (docs/SPEC.md, "Prefabs").

## Signature

```ts
export interface SpawnPrefabOptions extends SpawnPlacement {
  /**
   * Project-relative path of a `*.prefab.json`, as a scene instance's `prefab.source` names it:
   * `"prefabs/imp.prefab.json"`. It need not be placed in any scene.
   */
  prefab: string
  like?: never
  /**
   * Overrides for this copy, keyed as a scene instance's are:
   * `{ "root/script:chase/props/speed": 5, "club/transform/scale": [2, 2, 2] }`. Every key must apply.
   */
  overrides?: Record<string, unknown>
}
```

Import: `import type { SpawnPrefabOptions } from "@argus/api"`

## Members

| Member | Signature | Description |
|---|---|---|
| `prefab` | `prefab: string` | Project-relative path of a `*.prefab.json`, as a scene instance's `prefab.source` names it: `"prefabs/imp.prefab.json"`. It need not be placed in any scene. |
| `like` | `like?: never` |  |
| `overrides` | `overrides?: Record<string, unknown>` | Overrides for this copy, keyed as a scene instance's are: `{ "root/script:chase/props/speed": 5, "club/transform/scale": [2, 2, 2] }`. Every key must apply. |
