top of page
Installation Guide
- adding new Features
​
1. Open up Unity and add the included scene to your Build Settings. To do that go to: "File -> Build Settings", and press Add Current.
2. Add your textures to the "Textures" folder in: "Assets/2DCharacterCreator/Resources/", and click on it.
Set everything as follows in the inspector:
Texture Type: Sprite (2D & UI)
Sprite Mode: Multiple
GenerateMip Maps: checked
Format: Truecolor
Leave everything else as it is.
3. Click on it again and open the Sprite Editor to select the different sprites in your sprite sheet (if you have more than one sprite in a single texture). After selecting make sure it looks like you want and may adjust also the Pivot.
4. In the Unity hierarchy click on the arrow next to "Character", here you can see the different child objects of "Character", to add a new Feature you have to add a new child object: "Right click on Character -> Create Emtpy", and name it like the thing(/body part/cloth/...) which shall be selectable (e.g. "Piercings").
5. Click on "Add Component" in the inspector and choose "Sprite Renderer", do nothing else with that component.
6. Open the Scripts folder in: "Assets/2DCharacterCreator/", and go into the FeatureManager script.
7. Scroll down until LoadFeatures appears, here you have to add (for each new Feature, e.g. "Piercings") a new line of code (there is an explanation below and also in the script itself). If it isn't already written (like "Eyebrows", ...) you must write a new one, otherwise it does not work!
8. After saving close FeatureManager script. Done, click play and a new Feature button appears, just move the Feature to the place where you like.
bottom of page