> For the complete documentation index, see [llms.txt](https://roogame.gitbook.io/roogame/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roogame.gitbook.io/roogame/survivors-roguelike-kit/adding-a-new-playable-character.md).

# Adding a New Playable Character

## **1. Locate Character Prefab**

* Navigate to:\
  `Assets/RGame/RoguelikeKit/Prefabs/Player/Fighter.prefab`
* *Best Practice*: Duplicate the prefab before modification (Right-click → Duplicate)

<figure><img src="/files/ITSGRwFFq8TWwCdNqjv6" alt=""><figcaption></figcaption></figure>

## **2. Configure Character Properties**

1. Select the duplicated prefab
2. In the Inspector window:
   * Locate the `Player` script component
   * Modify `BeginSkillKey` (default skill assigned on spawn) [Information](/roogame/survivors-roguelike-kit/core-concepts-overview/skill-concepts.md)

<figure><img src="/files/RPbDrssI2Gvo9fv1rCXK" alt=""><figcaption></figcaption></figure>

## 3.Custom Animation

You can change the Animator. The following components must be present.

<figure><img src="/files/qvDr7oaa8PXxIeR92TnH" alt=""><figcaption></figcaption></figure>

and the "Hit" GameObject

<figure><img src="/files/Bya44jgh78GjdBKsQplp" alt=""><figcaption></figcaption></figure>

The rest of the GameObject are cosmetic, so you can just delete them if you don't need them.

You must include two animations in the Custom Animator, Idle and Run.

<figure><img src="/files/DjDQovwGzU2Qi5n2Of1r" alt=""><figcaption></figcaption></figure>

## **4. Adding a New Playable Character to the UI Panel**

### **Creating a New Character Config**

**Option A: Duplicate an Existing Character**

* Navigate to:\
  `Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Level/SelectCharacter/`
*

```
<figure><img src="/files/SJDMJgdc8sUKrOJ9AYtY" alt=""><figcaption></figcaption></figure>
```

* Right-click an existing **`CharacterSelectConfig`** and select **Duplicate**
* Rename the new file (e.g., `Warrior_Config.asset`)

**Option B: Create a New Config from Scratch**

* Right-click in the folder → **Create → RGame → RoguelikeKit → UI → CharacterSelectConfig**
* Name it appropriately (e.g., `Mage_Config.asset`)

### **Adding the Character to the Selection UI**

* Open the prefab:\
  `Assets/RGame/RoguelikeKit/Prefabs/UI/MainMenu/CharacterSelect_Panel.prefab`
* Locate the **`MCharacterSos`** array (likely in a `CharacterSelectionManager` script)
* Increase the array size and drag your new **`CharacterSelectConfig`** into an empty slot
*

```
<figure><img src="/files/8CEGS1zU1mnWsNixX9rX" alt=""><figcaption></figcaption></figure>
```

## **5.Testing**

1. Open Assets/RGame/RoguelikeKit/Scenes/Initialization.unity
2. Enter **Play Mode**
