> For the complete documentation index, see [llms.txt](https://joanorba.gitbook.io/spawnertool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://joanorba.gitbook.io/spawnertool/api/data/enemyfactory/getenemyprefab.md).

# GetEnemyPrefab

function in EnemyFactory

### Declaration

public GameObject GetEnemyPrefab(string enemyType);

### Parameters

<table data-header-hidden><thead><tr><th width="178"></th><th></th></tr></thead><tbody><tr><td>enemyType</td><td>Type of enemy you want to get Prefab of</td></tr></tbody></table>

### Returns

**GameObject -** Returns a Prefab given an enemy type

### Description

Returns dictionary of enemy prefabs. Strings are enemy type, and GameObject are enemy Prefabs.
