question

Robin avatar image
Robin asked

Share NetworkId to an other player with Unity Party Plugin

Hi, I'm using Unity Party plugin and I search a way to share the 'NetworkId' generated after 'CreateAndJoinNetwork' to an other player.
Actually I'm using Matchmaking to create a match with 2 players and each player gets a matchId. The first player write into InternalTitleData a new Key(matchId) Value(NetworkId) and the second ask the value of matchID to recover the NetworkId.

I suspect this is not a good solution. Do you have any recommendations?
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

·
Seth Du avatar image
Seth Du answered

Do you mean Title Data? Please note that Title Data is not designed for this scenario, it used for global variable, which won’t change frequently. It will be fine if it is Player Data(Title)

Player may create Shared Group, which can be a better solution. There is an official sample on https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/All/BumbleRumble. You may add other players to the group and use Cloud Script to store Shared Group ID into members’ Player Data (Title), then any Party related or other information can be stored in Shared Group data.

2 comments
10 |1200

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

Izhar Mishli avatar image Izhar Mishli commented ·

Why does PlayFab Party share TitleID & not the PlayFabId? It would be way easier to work with it that way. Getting User Data with TitleID doesn't seem possible.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Izhar Mishli commented ·

Please see my answer in the new thread that you posted.

0 Likes 0 ·

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.