Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheLastOfGamers opened this issue Jun 1, 2023 Discussed in #1113 · 0 comments
Open

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

TheLastOfGamers opened this issue Jun 1, 2023 Discussed in #1113 · 0 comments

Comments

@TheLastOfGamers
Copy link

TheLastOfGamers commented Jun 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant