Create a new Item in the Primary catalog, set "01" as ItemId, "Soldier" as DisplayName, pick "Is a token for character creation".
But still have "Item Not Owned" error in the next method:
public void BuyCharacter() { var request = new GrantCharacterToUserRequest(); request.CatalogVersion = "Economy"; request.CharacterName = "Soldier"; request.ItemId = "01"; PlayFabClientAPI.GrantCharacterToUser(request, OnBuyCharacter, OnPlayFabError); }
Answer by Citrus Yan · Mar 02, 2020 at 05:58 AM
In general, there are mainly two routes to grant a character to a player:
It seems that you are implementing the second route, hence, you’ll need to have the player add the item into his/her inventory before calling Client/GrantCharacterToUser.
By the way, this thread contains a more detailed discussion on Character-related stuff you may find helpful, please navigate to the link to learn more.
Thanks, haven't checked yet, but think, this is the answer - l really didn't add an item to inventory.