question

teamtowercat avatar image
teamtowercat asked

What is the difference between OnDataMessageReceived and OnDataMessageNoCopyReceived at the Playfab party?

Hi, I'm currently using the PlayFab party system to create a turn-based game.
I have a question about two methods.
What is the difference between OnDataMessageReceived and OnDataMessageNoCopyReceived?

I saw the document about party api, but I can't find the difference.

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

·
Made Wang avatar image
Made Wang answered

Both events are triggered when data is received, the difference being that they accept data in different formats. One is byte[] and one is IntPtr.

Please consult the relevant documentation for the differences between the two data formats.

In actual development, you only need to implement the one you need.

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.

teamtowercat avatar image teamtowercat commented ·

thanks to reply. i missed the data type. lol

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.