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

Navigation

</aside>

Home Page

Overview

Level Editing

Animals

Items

Upgrades System

NPC Character

Monetization (Ads & IAP)

How to add character model to store

  1. Import a new character model to the project. Open the Rig tab, select Humanoid Animation Type, and create an avatar from this model.

    https://lh5.googleusercontent.com/sQZT72ffEoLr9yCz-1bRVY3WrfMb8J9-D0i9_caHPhAqPeaDkWTQYqyA7skRxb7rTIfg2jLdQCvzSjVbF1hbwiV69nJBwwOBmLcd1Bnt4eB0O-eYaiavv_NZ4CFLfKkr8XJ6wcDCNYX0EUvecGMS-98

  2. Add a character model to the scene. Turn off the “Apply Root Motion” variable in the Animator component and add PlayerGraphics components to the character object.

    https://lh6.googleusercontent.com/FqkY7ir71HFl4bsTw_TWkQp-DgGlolickdDVDmAgLnPsbC4z2ey8ubHEv-iXx57LkoHvm92lWNJLsFvq4TZVDmi1UmImKhtPFiEBhgBzVIkY-xtqPqLRM-8DkW9sa3ZguR_XZaDjxvvJuwSyoH6xiNs

  3. Click the Create and Init button to create a storage object and add the required components.

  4. Create a prefab from the created object.

    https://lh6.googleusercontent.com/sdlqKcASwPh8gNn2JlJigDuiW2TgKosORstvRUV2eZKxC4wcgr0IyNYqvPbjcKXjoA8S3Piaj826U8McPyvB1fPubZ1K2Om27c8y98AKPHx5glFeBI_zD-TsDBN9UbSsPJwSiYxsS_638IDd-ccujF8

  5. Select the Store Database located in the Project Files\Data folder and add a new product by clicking the + button at the bottom of the Inspector window.

    In case you want to replace old model with a new one, just follow next steps, but use previously created products.

  6. Link created prefab to Prefab variable.

  7. To complete the setup product, update the following fields:

    1. Opened Sprite - an icon of the product when it’s bought
    2. Locked Sprite - an icon of a product before it bought
    3. 2D Sprite Preview - ****preview that displays when the product is selected
    4. Purchase Type - the product can be purchased using currency or by watching rewarded videos
    5. Cost - the amount of required currency to purchase the product or amount of required RVs
    6. Is Dummy - if the variable is checked product won’t be interactable
  8. To calibrate the storage position start the game, open the Store, select the created product, and pick up any object. After this select the Storage object and change position and rotation to fit the holding animation.

    https://lh3.googleusercontent.com/HqGsGQtxmx0JkessctyzkFABsepkpER9-ZKh6yECJibDapESiFaDzjexNox2gUqXY6ZxVVRTaRx0OP7ym4Fk7pG5UsksDGr2inRGYfKWtt5fWM9wu_LARlfmDceMCVGVg0K5eDe4godVTOeg-2mYAsw

    https://lh5.googleusercontent.com/a_pep3rfVHsIbUngYkDI5l4NM2HCQGUDslEwTlPwlVluGTS4qCDnXiV06sc8jaFfd14vkNZduW8ppOOtSKqUNrENiyjBA9O81BRV-uxUJNaLxjCB_h9kdPUmQmqKEJEFJepdivDC9EP_kjZ_nYKf1pg

  9. Copy the storage Transform component and paste it to your created character prefab.

    https://lh4.googleusercontent.com/-s8h2lNrCfAC6uHCUMAen5abLSbd0CV9JS5LfGGbzAKk2inQo2-lKc_2uzjDjzaQSJro97vEK_jm6hcTea4Z5MQnCZjto3Uq56BjNxOhFdt7VCxok5ELQUheFR2DB5G4P0Yo8AHhmDxZEE_cCSBXy2o