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

Navigation

</aside>

Home Page

Overview

Skins System

Color Presets

Spawn Configuration

UI Store

Monetization (Ads & IAP)

How to create a new skin and add in into the store

  1. Add your model to the scene. Reset it’s transform Transform → Reset

    Untitled

  2. 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.

    Untitled

  3. Select the model and set Tag and Layer to value Player.

    Untitled

  4. While the model is selected click AddComponent and type in Circle Collider 2D

    Untitled

  5. 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.

    Untitled

    Untitled

  6. Drag the model into the Game\\Prefabs\\Store\\Character Prefabs folder to create a prefab. Delete the model from the scene.

    Screenshot 2023-12-11 201407.png

  7. Create an empty object on the scene GameObject → Create Empty. Reset Transform. Name it “[Skin name] Skin”Unicorn Skin in this example.

  8. Select the object and press Add Component and type in Skin Behavior.

    Untitled

  9. Now let’s configure all the fields.

    1. Mandatory fields

      1. Prefab - drag here the prefab we created at step 6
      2. Hit Effect Color - color of model’s VFX
      3. Rotation Mode
        1. Spin - when used object will do full spins using physics, perfect for rounded objects like balls.
        2. Tilting - objects will only tilt, perfect for objects with obvious bottom and top like a pot with a cactus.
    2. Optional fields - assign them if you want to customize your skin even more.

      1. Special Hit Effect Prefab - a reference to a particle that will be played during impact with the platform.
      2. Trail Prefab - a reference to trail prefab.
      3. Hit Sounds - a list of sounds that will be randomly played during impact with the platform.
      4. Game Over Sound - a sound that will be played during a game over.

      Untitled

  10. Drag the object into the Game\\Prefabs\\Store\\Skins folder to create a prefab. Delete the object from the scene.

    Untitled

  11. Select the Skins Database object located in the Project Files/Data/Skins folder.

    image.png

  12. Click the little + button at the bottom of the list to add another skin.

    Untitled

  13. Assign the prefab and preview image. This database will provide skins to other game modules in our case to the store.

    image.png

  14. 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.

    image.png

  15. Click the little + button at the bottom of the Products section to add another product.

    Untitled

  16. Click the product called New Element to configure the fields:

    1. Name - name of the product (just for your convenience)
    2. Opened Sprite - image of your product when it’s purchased
    3. Locked Sprite - image of your product when not purchased
    4. 2D Sprite Preview - leave it blank as the store uses 3D preview in this case.
    5. Skin Id - select required product form 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 - select the available store tab. You can configure tabs in the Tabs section above.
    9. Is Dummy - if the variable is checked product won’t be interactable

    image.png