<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
Add your model to the scene. Reset it’s transform Transform → Reset
Adjust the model’s scale so it is around the same size as other skins. They can be found in Game\\Prefabs\\Store\\Character Prefabs
. Here we use cactus for comparison.
Select the model and set Tag and Layer to value Player.
While the model is selected click AddComponent
and type in Circle Collider 2D
Adjust the collider Offset and Radius so they fit the model nicely. You can use a 2D mode of the Scene window to make adjustment easier.
Drag the model into the Game\\Prefabs\\Store\\Character Prefabs
folder to create a prefab. Delete the model from the scene.
Create an empty object on the scene GameObject → Create Empty
. Reset Transform. Name it “[Skin name] Skin” → Unicorn Skin in this example.
Select the object and press Add Component
and type in Skin Behavior.
Now let’s configure all the fields.
Mandatory fields
Optional fields - assign them if you want to customize your skin even more.
Drag the object into the Game\\Prefabs\\Store\\Skins
folder to create a prefab. Delete the object from the scene.
Select the Skins Database object located in the Project Files/Data/Skins
folder.
Click the little +
button at the bottom of the list to add another skin.
Assign the prefab and preview image. This database will provide skins to other game modules in our case to the store.
Select the Skins Store Database object located in the Project Files/Data/Skins
folder. This database stores settings of all products displayed in the store.
Click the little +
button at the bottom of the Products section to add another product.
Click the product called New Element to configure the fields:
Tabs
section above.