question

lennart862 avatar image
lennart862 asked

Get entity ID of a player from his display name

Hello,

if I just have the diplay name of a player but want to get his entity ID, how would I do that in Unity c#? Thanks in advance!

entities
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

·
Sarah Zhang avatar image
Sarah Zhang answered

There is no API that can Get entity ID of a player by his display name directly. Do you make this operation in the client? In the client, you can get entity id of players directly after players logged in successfully. It is included in the result of the response.

If you want to implement it with server API, we suggest you to use CloudScript or a custom server. You can make players upload their PlayFabIds directly and use GetUseAccountInfo to get their entity IDs.

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.