question

Adam Dugan avatar image
Adam Dugan asked

In unity what is the best way to get the expiration date and time of an active item in the users inventory? I would like to display this information to the user but I do not see a clear function for doing this.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

You can call Get User Inventory API to get all the active items and their info in player’s inventory, including the expiration time if the item is consumable by time.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.