> For the complete documentation index, see [llms.txt](https://conusyntax.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://conusyntax.gitbook.io/products/gender-based-asset-swapping.md).

# Gender-Based Asset Swapping

Allows you to dynamically switch between different assets based on the Character's gender and Data Tables. This is essential if you want to display gender-specific items, such as male-only clothing for male characters and female-only clothing for female characters.

#### Implementing the Swap Logic

To trigger a data table swap, you need to modify the logic in the widget that controls gender selection (typically a **Stepper Button** or **Dropdown Button**).

1. Open the widget's blueprint graph.
2. Locate the **Set Character Gender** function or the logic triggered by the gender selection tag (`CharacterCreator.Gender`).
3. Add one of the following three swap functions depending on the asset type:
   * **Swap Skeletal Mesh Data Tables**
   * **Swap Static Mesh Data Tables**
   * **Swap Groom Data Tables**

<figure><img src="https://1883754984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EcXMpvBDtWhtztAbvO1%2Fuploads%2FowUF3H8NXxidqnCcwqhc%2FSwap%20Data%20Tables%20-%20Swap%20Functions.png?alt=media&amp;token=38dbbaba-be8a-4f4f-854d-0aa054562ada" alt=""><figcaption></figcaption></figure>

4. Connect the execution pin of the swap function directly to the **Set Character Gender** function.
5. Within the swap node, assign the specific Data Tables for both the **Male Data Table** and **Female Data Table** slots (e.g., DT\_Clothing\_Male and DT\_Clothing\_Female).

<figure><img src="https://1883754984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EcXMpvBDtWhtztAbvO1%2Fuploads%2F0yvLCvAyRJQxwBlW19A8%2FSwap%20Data%20Tables%20-%20Connect%20Swap%20Function.png?alt=media&amp;token=74d66224-48b7-462c-a4a7-d91448ebceee" alt=""><figcaption></figcaption></figure>

#### Matching Row Names

For the asset swap to function seamlessly, **Row Names** must be identical across tables.

For example, If a shirt is listed as "TopShirt" in **DT\_Clothing\_Male**, it must also be named "TopShirt" in **DT\_Clothing\_Female**.

#### How it Works

The system uses **Gameplay Tags** to drive the selection process. When a gender change is triggered:

* A **Switch on Gameplay Tag** node identifies the `CharacterCreator.Gender` tag.
* The system executes the **Set Character Gender** logic.
* The corresponding Swap function (e.g., **Swap Skeletal Mesh Data Tables**) updates the active asset list to match the new selection.

#### Extending Default Gender Data Tables

While the system includes default pins for Male and Female Data Tables, it is designed for scalability. Developers familiar with Blueprints can easily expand these functions to accommodate additional gender categories as needed.
