> 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/projectsettings/getenemycolor.md).

# GetEnemyColor

function in ProjectSettings

### Declaration

public Color GetEnemyColor(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 the color</td></tr></tbody></table>

### Returns

**Color -** Returns color given enemyType. If enemyType is not found, it returns White color.
