CREATE YOUR WORLD
Economy

Item icon thumbnail download API

4min

The ZEPETO.Module package allows you to download thumbnail textures for ZEPETO items.

By dynamically downloading item thumbnails, you can help reduce the size of your Build Package.



STEP 1 : Installing

Please install Window → Package Manager → ZEPETO.World Package 1.21.14 or later version first.

After that, please install the ZEPETO.Module package.

Document image




STEP 2 : UI > Adding an Image

  1. We need to add an Image component to the Scene that will display the thumbnails. Please add Hierarchy > UI > Raw Image.
  2. Set the Width and Height to the same Size.



STEP 3 : Write the script

  1. Create a Hierarchy > Create Empty Object and rename it to DownloadThumbnail
  2. create Project > Create > ZEPETO > TypeScript and rename it to DownloadThumbnailSample.
  3. Write the sample script as shown below.
TypeScript




4. After you finish writing the script, add the DownloadThumbnailSample script to the DownloadThumbnail object.

5. Assign image to the script inspector and enter the itemCode.

📘 Please refer to the mannequin guide on how to check the itemCode. [ZEPETO Mannequin]

6. Press the [▶︎(play)] button to execute, and you should see the item thumbnail in the image you set.

Document image