<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
Import the custom assets into the project
Go to Assets/Project Files/Game/Prefabs/Environments
Open an existing prefab or duplicate it and rename it. Open the new prefab and you will see the following structure
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.
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.
Click the little +
button below the list to add a new element.
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.
It’s important to have the same order that you have in Level Editor
Select the Store Database
object located in the Project Files/Data/Store
folder. This database stores settings of all products displayed in the store.
Select the Environment
tab in the Product
section
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:
Name - a name of the product (just for your convenience)
Opened Sprite - image of your product when it’s purchased
Locked Sprite - image of your product when not purchased
2D Sprite Preview - leave it blank as the store uses 3D preview in this case.
Skin Id - select the required product from the list.
Purchase Type - the product can be purchased using currency or by watching rewarded videos
Currency - a currency used for purchasing
Cost - the amount of required currency to purchase the product or amount of required RVs.
Tab - select the available store tab. You can configure tabs in the Tabs
section above.
Is Dummy - if the variable is checked product won’t be interactable