MResearch
7 months agoMember
Function this.world.WorldInventory.grantItemToPlayer doesn't work as expected
I have been working on the new Economy world tutorial from Horizon World Documentation and find that line 82
WorldInventory.grantItemToPlayer(player, this.props.lootSKU, this.props.lootCount);
doesn't increase the quantity of the in-world item as expected.
Here is the screenshots of the setup and debugging console messages:
Reference: https://developers.meta.com/horizon-worlds/learn/documentation/tutorial-worlds/economy-world-tutorial/module-2-setup
Might be a bug, but there is also a delay before purchases are reflected this way. Might need to wait a couple seconds before checking their entitlements.
Also is your quantity value greater than 0?