# GetAllWearablesOfCategory

**Declaration**\
public List\<Wearable> **GetAllWearablesOfCategory**(**WearableCategory** \_category);<br>

**Parameters**

<table><thead><tr><th width="217">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>WearableCategory</strong> _category</td><td><em>The Wearable Category you want a list of Wearables for.</em></td></tr></tbody></table>

**Description**\
The public function to retrieve a list of wearables in a given category from all Wearable Databases in the Wearable Database array.

**Returns**\
A list of Wearables assigned to the specified Wearable Category.

**Declaration**\
public List\<Wearable> **GetAllWearablesOfCategory**(**int** \_categoryIndex);<br>

**Parameters**

<table><thead><tr><th width="217">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>int</strong> _categoryIndex</td><td><em>The Wearable Category index you want a list of Wearables for.</em></td></tr></tbody></table>

**Description**\
The public function to retrieve a list of wearables of a given category index from all Wearable Databases in the Wearable Database array.

**Returns**\
A list of Wearables assigned to the specified Wearable Category index.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stellar-game-assets.gitbook.io/modular-character-system/reference/scripting-guide/character-style-functions/getallwearablesofcategory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
