Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by achatterjee · Feb 22, 2021 at 09:00 AM · Player DatadataTitle DataShared Group Data

Is there a way to Send Data between Clients ?

I would like to know if it is possible to send data between clients using PlayFab, if the only thing the sending client has is the receiving clients EntityKey ? This needs to be done without using Party or Groups.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Ivan Cai · Feb 23, 2021 at 09:15 AM

Sending data directly between clients is not supported by playfab, and it needs to go through the server side. Now that you have the EntityKey of the receiving client, you can call the SetObjects API in cloudscript to store the data into its objects and retrieve them later using GetObjects.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image achatterjee · Feb 23, 2021 at 10:34 AM 0
Share

@Ivan Cai

Would you mind expanding on SetObjects API in clouldScript ?
Which object to set ? The "title_player_account" entity's objects ?

avatar image Ivan Cai ♦ achatterjee · Feb 24, 2021 at 06:07 AM 1
Share

The objects to set are the "title_player_account" entity's objects.

An example of expanding on the SetObjects API in cloudscript is as follows:

handlers.callEntityAPI=function(args,context){

    entity.SetObjects({

         Entity:

         {

          Id: args.ReceiverEntityId,

          Type: "title_player_account",

          TypeString: "title_player_account"

          },

         Objects: [

            {
                ObjectName: "obj",

                DataObject: args.customData

            }

        ]

    })

}

At this point, the customData passed in by the client is:

"Key": "Data"

The figure below shows the Receiver client entity's objects:

answer14.png (5.5 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    For the player data, is it possible add additional tables so different types of data can be group separately? 1 Answer

    Create table in data explorer(advanced) 2 Answers

    Problem in login to playfab with android studio, Apk genrated withouterror but no data of players in playfab 1 Answer

    Admin panel in unity, to modify the statistics of the player you want / choose,Modify player data in a unit panel 1 Answer

    Transfer titile to another studio 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges