question

leebrium avatar image
leebrium asked

How to get the information of a player who created the room on Photon Unity to be displayed in Playstream?

Hello, I just started Photon + PlayFab.

I follow the tutorial from PlayFab and successfully show the event on PlayStream.

Is it possible to also display the player information on the PlayStream debugger like the username?

Thanks in advance.

photon
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.

Hamza Lazaar avatar image Hamza Lazaar commented ·

Hi @leebrium,

Thank you for choosing Photon!

You can, of course, write a custom PlayStream event from CloudScript handlers for Photon webhooks or webRPCs containing the player's Nickname.

0 Likes 0 ·

1 Answer

·
Andy avatar image
Andy answered

Most of the information we get from photon to populate the playstream is at a title level. The only player-specific info we get is an authentication event that we're able to tie back to an identity on your title. We don't have information available about which specific player initiated a room action.

You might be able to put a custom event in your game that signifies a player creating a room. You'd then be able to include whatever additional info was available to your client at the time and it would show up in the PlayStream.

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.