Add a Character
If you want to add or change a character, here's how:
Last updated
If you want to add or change a character, here's how:
Last updated
Before you begin, make sure that you have all the components needed:
Import sprite sheets or sprites for character and it's animations, as listed below:
Prepare these sprite sheets to be used for animating. If you need a reminder on how to do that, take a look at .
Create Animation Controller and Animations from these sprite sheets. Visit to know more.
Now you can create a prefab for your character.
The easiest way to do this is to modify or copy existing prefab:
Navigate to and select one of the character prefabs there. Open it, or make a copy.
In the Inspector there will be 3 main components: Sprite Renderer, Animator and Character Behavior Script.
In the Sprite Field of the Sprite Renderer assign a sprite from your character. By default it can be a simple standing pose.
Make sure that the Material field of the same component has Player material assigned.
Make sure that Sorting Layer is set to 0
If the sprite you assigned appears to be larger or smaller than expected, tweak its Pixel Per Unit value in the import settings.
In the Animator Component, assign your Controller in the appropriate field.
In the Character Behavior script, assign the components needed.
If you did not add these components as new, and simply copied the prefab, they will be most likely assigned correctly by default.
When you have your character prefabs ready, you need to register them.
However, if you modified existing characters instead of creating new one, you can skip the steps from 1 to 4.
Navigate to the Characters Database at and open it.
In the Inspector you will find several entries of the existing characters. It should look like this:
Every entry has fixed fields:
Name
Character name that will display in the Character Selector
Cost
Amount of currency to unlock in the Character Selector
Icon
Preview image
Prefab
Link to the specific character prefab
Base HP
Initial health amount
Base Damage
Initial damage
Press the Plus button below the list to create a new entry.
Assign your character prefab to the according field.
Populate all other fields to your liking.