question

Justin Heasman avatar image
Justin Heasman asked

Unity SDK v2 Beta (PlayFabDataGatherer has illegal Method Calls)

Hi there,

There is a bug in the latest Unity SDK v2 beta. When using with Unity 5.4 Beta 23 you are calling some Application methods that are now not allowed within a constructor.

For example:

get_productName is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'PlayFabHttp' on game object 'PlayFabHttp'.

and

get_bundleIdentifier is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'PlayFabHttp' on game object 'PlayFabHttp'.

Other than that the new v2 beta is looking and working well.

Justin

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.

marcowilliamspf avatar image marcowilliamspf commented ·

Thanks Justin,

We will look into this right away! We had not tested this on the Unity Beta yet.

1 Like 1 ·
Justin Heasman avatar image Justin Heasman marcowilliamspf commented ·

Thanks Marco.

0 Likes 0 ·

1 Answer

·
marcowilliamspf avatar image
marcowilliamspf answered

We have resolved this issue. The repository has been updated.

https://github.com/PlayFab/UnitySDKV2Beta/issues/7

10 |1200

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

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.