<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
Go to the Assets/Project Data/Game/Prefabs/BallSkins
folder.
Select any existing ball prefab and press Ctrl+D (Cmd+ D). Rename it properly. Open a newly created prefab.
Change the Mesh field of the Mesh Filter component and the Material field of the Mesh Renderer component to your assets. Save prefab.
Select the Ball Skins Database object located in the Assets/Project Files/Data/Store
folder.
Click the little +
button at the bottom of the list to add another skin.
Assign the ball prefab. This database will provide skins to other game modules in our case to the store.
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 Balls
****tab at the top of the Product section ****of the window
Click the little +
button at the bottom of the Product 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