question

services-3 avatar image
services-3 asked

UnityWebRequest request.result does not exist using Playfab GSDK PlayFabMultiplayerAgentAPI

Hi!

I've just imported the GSDK for our server build and we're facing this issue with UnityWebRequest.

We directly downloaded it from the repo: https://github.com/PlayFab/gsdk

Would really appreciate your help, thank you.

unity3dsdks
10 |1200

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

Dimitris-Ilias Gkanatsios avatar image
Dimitris-Ilias Gkanatsios answered

So the UnityWebRequest.result does not exist in 2019 Unity - Scripting API: UnityWebRequest (unity3d.com), that's why the script is not working.

The .result was added in the latest commit, can you instead use this version of the file and see if it works for you? gsdk/PlayFabMultiplayerAgentAPI.cs at 29f72b00da3330e336e074c0db6f3a5ad27f5407 PlayFab/gsdk (github.com)

10 |1200

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

Dimitris-Ilias Gkanatsios avatar image
Dimitris-Ilias Gkanatsios answered

Does this error occur when you open the project? In which file and line? Also, which Unity version are you using?

10 |1200

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

Dimitris-Ilias Gkanatsios avatar image
Dimitris-Ilias Gkanatsios answered

Just tested the GSDK repo with 2021.2.7f1 and it seems to work.

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.

services-3 avatar image services-3 commented ·

In our case, we're using Unity 2019.4.27f, and it happens exactly in the class PlayFabMultipleyerAgentAPI

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.