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.
Please install Window → Package Manager → ZEPETO.World Package 1.21.14 or later version first.
After that, please install the ZEPETO.Module package.
- We need to add an Image component to the Scene that will display the thumbnails. Please add Hierarchy > UI > Raw Image.
- Set the Width and Height to the same Size.
- Create a Hierarchy > Create Empty Object and rename it to DownloadThumbnail
- create Project > Create > ZEPETO > TypeScript and rename it to DownloadThumbnailSample.
- Write the sample script as shown below.
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.
Updated 10 Oct 2024
Did this page help you?