question

Ilya Dvorovoy avatar image
Ilya Dvorovoy asked

Unity 2018.2.2 SDK upgrade hanging importing scripts

Hi All,

Trying to import the latest Unity PlayFab SDK package v2.48.180809 into a project makes Unity v2018.2.2 hang on the "Importing scripts" step.

Editor.log:

Updating Assets/Plugins/PlayFabSdk/Client/PlayFabIdfa.cs - GUID: ead33775225e2ca468882f2acca20d94...
Invalid #ifdef expression:  (!UNITY_5_3 && !UNITY_5_4 && !UNITY_5_5 && !UNITY_5_6)  (error around  
Invalid #ifdef expression:  (!UNITY_5_3 && !UNITY_5_4 && !UNITY_5_5 && !UNITY_5_6)  (error around  

...
unity3d
10 |1200

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

Ilya Dvorovoy avatar image
Ilya Dvorovoy answered

Hi Jay,

Thanks for your reply. I did manage to resolve the issue and you won't believe the solution.

There was no issue when importing PlayFab SDK v2.48.180809 into a clean project created with Unity v2018.2.2. Also everything was fine when I tried importing the same SDK into a working project with Unity v2018.1.4. Previous SDK version we used was v2.47.180716.

Long story short, the solution was... to remove... the //comment !!! on the aforementioned line

-#elif (!UNITY_5_3 && !UNITY_5_4 && !UNITY_5_5 && !UNITY_5_6) // This section for 5.3 or newer
+#elif (!UNITY_5_3 && !UNITY_5_4 && !UNITY_5_5 && !UNITY_5_6)
10 |1200

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

JayZuo avatar image
JayZuo answered

I can't reproduce your issue with the latest Unity PlayFab SDK (Version: 2.48.180809). It works well on my side. Have you tried importing the SDK into a new project? Does it also have the same issue? And what's the SDK version you are using before importing the latest one?

Besides, instead of manually importing the SDK, you can also use Editor Extensions which provides a UI for managing SDK settings as well as an automatic SDK upgrade ability to stay up-to-date with the latest APIs.

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.