i've made a game but i want to change some values and transport them from Player Data (title) to Player Data (Publisher)... How can i do that? and what is the code that i can use? (I'm on unity)
i've made a game but i want to change some values and transport them from Player Data (title) to Player Data (Publisher)... How can i do that? and what is the code that i can use? (I'm on unity)
If you want to change player data(title), you can update values via calling UpdateUserData API. After updating player data(title) successfully, you need to put the updated data content into the Data property of UpdateUserPublisherData API and call it. In your case, you can code it that calling server APIs in cloudscript, and call ExecuteCloudScript API to execute cloudscript function in unity's script . To use UpdateUserData in Cloud Script, I would recommend having a look at our samples: https://github.com/PlayFab/PlayFab-Samples.The Progressive Rewards sample is one that uses this API call.
Hi, thanks for answering me, so i can't update user publisher data without update user data for the title?
Can't I create a variable in Player Publisher data without define it into Player Title data?
In your case, didn't you update the data synchronously in the publisher data and player data?
can you show me an example of UpdateUserPublisherDataRequest? Because i don't see this definition in my script
Can i call UpdateUserPublisherData in unity? or only in cloud script?
You can also call client UpdateUserPublisherData API in unity.
How? can you show me that?
what namespace i need and how to call it? cause i've tried but i not found the code
If someone is looking for an example this might help.
5 People are following this question.