<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

Home Page

Overview

Levels Creation

Color Skins

Hat Skins

Color of hexes

Nickname System

UI Store

Monetization (Ads & IAP)

How to add hat skins

  1. Find and select the Player object on the hierarchy window.

  2. On the Inspector window find the Player Behaviour script, and click the Find Skin Holder button.

    image.png

  3. The object called mixamorig:HeadTop_End will be selected, drag your new skin model here (so it becomes a child of the object) like this:

    image.png

  4. Using the Scene window adjust position and scale of the object

    image.png

  5. Drag and drop the adjusted skin object into the Assets/Project Files/Game/Prefabs/Hats folder - prefab will be created

    image.png

  6. Now you can delete the skin object from the scene (the one we added in step 3), it will be loaded automatically

  7. Go to Assets/Project Files/Data/Skins and select the Hat Skin Database scriptable object.

  8. Click the + button at the bottom of the Skins list to add a new element.

    image.png

  9. Assign a prefab variable with a prefab created in step 5.

  10. Select prefab, and find its transform component in the Inspector window. The value in Position field is the adjustment you have made in step 4, copy this value to the Model Position variable in the new database entry.

    image.png

    image.png

  11. Go to Assets/Project Files/Data/Skins and select the Skins Store Database scriptable object.

  12. Select the Hat ****tab in the Product section to display a list of vehicle products.

    image.png

  13. Click on the + button to add a new product.

  14. Update the following fields:

    image.png

    1. Name - name of the product used in the editor.
    2. Opened Sprite - an icon of the product when it’s bought;
    3. Locked Sprite - an icon of a product before it is bought;
    4. 2D Sprite Preview - ****preview that displays when the product is selected;
    5. Skin Id - select skin from the list;
    6. Purchase Type - the product can be purchased using currency or by watching rewarded videos;
    7. Cost - the amount of required currency to purchase the product or amount of required RVs;
    8. Tab - store tab where product will be located, you can change the value to move product into another tab.
    9. Is Dummy - if the variable is checked the product won’t be interactable.