question

Ternology avatar image
Ternology asked

I made a simple Character Customization before they go to the main game But how do I save their choice for their character and send it as Player Data

Player DataCharacter Data
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ternology avatar image Ternology commented ·

Like for example, there are 4 choices for Customization that is Hat, Eyes, Mouth, Hair, and then after they choice, they will click the Create button but how do I call it to PlayFab?

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

In terms of equipment, based on your requirement, we usually suggest using Player Data/Player Read-Only Data for storage.

The click from player should create a structured JSON object data to submit to PlayFab. It will be like:

{ "Hat": "1", "Eyes": "2", "Mouth": "3", "Hair": "4"}

Then, you can serialize it to a string to use in the request of UpdateUserData, or UpdateUserReadOnlyData in Cloud Script/Azure Function.

{
                
"Data": {
"Customization": "xxxxxxxx"
},
"Permission": "Public"
}
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.