question

krlossilva avatar image
krlossilva asked

How to request the avatarurl using ClientModels

Desculpe o meu inglês, mas sou brasileiro e estou usando o Google Tradutor. E eu gostaria de saber como solicitar o avatarurl usando o ClientModels?

10 |1200

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

1 Answer

·
Hernando avatar image
Hernando answered

The request model in your code, the field ProfileConstraints is not necessary in most cases, but if you want to retrieval the Avatar URL, you need to fill in it.

new GetPlayerProfileRequest { PlayFabId = "hereyourid", ProfileConstraints = { ShowAvatarUrl = true } };

And in server side, there are options in Playfab to allow which properties can be accessed from the client, so you can configure it in the GameManager "Client Profile Options" tab in the "Settings" section.

If you can't understand the workaround through translation, please feel free to ask questions.


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.