question

Resul avatar image
Resul asked

How to connect private chat and public chat simultaneously in PlayFab Party Unity SDK?

We have a multiplayer mobile game with PlayFab Unity, PUN 2 and PlayFab Party Unity SDK included.

The player in a room and there is a public room chat that every player inside the room can write something.

But also player has friends. And the player can chat with friends privately.

Is there a way to join public chat network and private chat network simultaneously?

Or do we need to join different chat networks for writing each other with PlayFab Party Unity SDK?

unity3dsdksphotonFriendsmultiplayer
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

·
Rick Chen avatar image
Rick Chen answered

You can control the chat permissions of players to define the communication channels. For more detail, please check this document: PlayFab Party Chat Permissions and Muting - PlayFab | Microsoft Docs.

What do you mean by joining public chat and private chat simultaneously? If you allow all players to chat with you, then your friend under the same network should be able to chat with you as well.

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.

Resul avatar image Resul commented ·

@Rick Chen

What I meant was there would be two chat panels. One is to contain and get updates on public chat. Public chat means that all players are in the same room. A private chat panel is a chat with a friend. I understand what you mean about giving chat permissions to the players and the other players also need to set their chat permission to the other players because chat permissions are set locally.

Using PUN 2 as well, Is it gonna work if two friends are in different rooms, in different scenes? If one friend needs to get into another friend's network for chat purpose, the other friend will not get updates from public chat because he is in a different room and obviously on a different chat network. Am I right?

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Resul commented ·

If player A and B are not in a common network, they will not be able to chat with each other, as explained in this document: PlayFab Party objects and their relationships - PlayFab | Microsoft Docs.

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.