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

Navigation

</aside>

Home Page

Overview

Levels Creation

Environment

Cars

Monetization (Ads & IAP)

How to add a new environment

  1. Import the custom assets into the project

  2. Go to Assets/Project Files/Game/Prefabs/Environments

  3. Open an existing prefab or duplicate it and rename it. Open the new prefab and you will see the following structure

    Untitled

    Inside each side environment, there are props you should change in order to reskin the product.  Due to the transition between levels, it is mandatory to have all props inside its designated side environment. Roads and parking field game objects should not be placed on any side environment. Exit the prefab mode once you finished customizing the environment prefab.

  4. Now we need to create a new database entry for the new environment. It will allow us to use it in the game, particularly in the Store. Select the Environment Skins Database asset located in the Project Files/Data/Skins folder.

    image.png

  5. Click the little + button below the list to add a new element.

    Untitled

  6. Assign the preview image and the environment prefab we created before. This database will provide skins to other game modules in our case to the store. You also need to assign obstacles that will be used together with this skin. You can create a custom ones or simply reuse obstacles from another environment.

    image.png

    It’s important to have the same order that you have in Level Editor

    Untitled

  7. Select the Store Database object located in the Project Files/Data/Store folder. This database stores settings of all products displayed in the store.

    image.png

  8. Select the Environment tab in the Product section

    image.png

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

    Untitled

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

    1. Name - a 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 the required product from the list.

    6. Purchase Type - the product can be purchased using currency or by watching rewarded videos

    7. Currency - a currency used for purchasing

    8. Cost - the amount of required currency to purchase the product or amount of required RVs.

    9. Tab - select the available store tab. You can configure tabs in the Tabs section above.

    10. Is Dummy - if the variable is checked product won’t be interactable

      image.png