Forum rules - please read before posting.

Custom Shop UI Variable Not Syncing

edited February 6 in Technical Q&A

I'm assembling my custom shop UI but I notice the Player Coins don't sync with the coins that the player has in his inventory and Menu Editor - Inventory Editor. I've tried to solve this issue but it seems I can't seem to find a solution. What am I missing?

Pictures for reference.
https://imgur.com/a/SX8ObVe
https://imgur.com/a/eRM8XDL

Comments

  • The label uses a variable token to display the amount of coins - [var:0] - where 0 represents the ID of a Global Integer variable.

    Create such a Variable if you don't have one, named e.g. PlayerMoney, and then replace "0" with its ID.

    Then, in your UI prefab's root, configure the Shop Sell / Shop Buy component with the name of this variable, and your Coins item. It will then link the two when the Menu opens.

  • Hi Chris, sorry for the late reply. Thank you for your suggestions. I got it to work now!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.