Adding a New Playable Character
Last updated
Last updated
Navigate to:
Assets/RGame/RoguelikeKit/Prefabs/Player/Fighter.prefab
Best Practice: Duplicate the prefab before modification (Right-click → Duplicate)
Select the duplicated prefab
In the Inspector window:
Locate the Player
script component
You can change the Animator. The following components must be present.
and the "Hit" GameObject
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.
Option A: Duplicate an Existing Character
Navigate to:
Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Level/SelectCharacter/
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
)
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
Open Assets/RGame/RoguelikeKit/Scenes/Initialization.unity
Enter Play Mode
Modify BeginSkillKey
(default skill assigned on spawn)