I have a problem that I can't get any further. When the player buys a character, this button should be deactivated and remain so. can someone help me how i do that
Attachments: Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.
Not sure which engine/language you are using, however, the basic idea should be similar:
In the success callback of the purchase, deactivate the button by doing this: button.interactable = false; (assuming you’re using Unity)
C Sharp with unity
You may iterate all those 4 buttons and deactivate the ones whose associated character is in the inventory.
how do i find out which button belongs to which character. Maybe you have a code example
that's a great tip thank you :)
@Michael Brilz What engine/language are you using? If you're using Unity, it's as simple as
YourPurchaseButton.interactable = false;
I Check with getuserinventory if the character is in the inventory, but How i can deactivated the Button of this characters.
I forgot to give more information sry. I have 4 buttons on which players can buy characters with purchase item. How can I Check After the login if these characters are in the inventory, and deactivated the button of this character
3 People are following this question.
base building data structure
Does playfab have features allow user to store user's profile data in a database?
Rewarding players with consumable items after each X games (or other metrics)
Managing Games levels - how to - best practice?
Best approach for a city-builder?