naverz / zepeto-studio-kor

48 stars 8 forks source link

Issue regarding SendWebRequest() for mannequin item IDs! #1300

Open TheLastOfGamers opened 1 year ago

TheLastOfGamers commented 1 year ago

Hi there,

am trying to create a custom item/accessory UI using the base of the mannequin script, but am not sure how exactly are we getting the Items using the item IDs. Here i tried different methods, most of the time it returns null or crashes unity.

Is there a way to get the Items using itemIds to create a custom UI with buttons on HUD UI, and without the need for an interaction icon? Here is a piece of code that i tried.

In this script am trying to convert the ItemIDs to the ItemContent thats needed to use in UI.

CustomUI

Here is the script that is attached to the button, to pass in the item IDs.

ItemIDs

btw this crashes Unity.