question

cihan-gs avatar image
cihan-gs asked

Accessing the PFEntityKey information of another player in the lobby owner.

Hello, How can I retrieve the PFEntityKey or PlayFabAuthenticationContext of players connected to a lobby created with PlayFab? Or should I store these elsewhere outside of PlayFab? If PlayFab provides such functionality, I would greatly appreciate it if you could show me with code.

Player Datamultiplayer
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

·
Neils Shi avatar image
Neils Shi answered

You can get the list of PlayFab entities currently joined to the lobby via Lobby.GetMembers method. For more information, you can refer to https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/lobby/unity-multiplayer-api-reference/playfab.multiplayer/lobby/getmembers .

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.