I was beginning with the integration of In-App Purchases in my project (made with Unity 5.3.5f1), by following the instructions in Integrating Unity IAP In Your Game. After enabling Analytics and In-App Purchasing from the Services window, I pressed the Import button as explained in the tutorial. However, no new Plugins were present in the Plugins folder. However, I kept going on, trying to make the script for IAP implementation. Due to my game has been made using Javascript, I used the code posted in the thread linked here as a complementary reference.
While making the script, I got the error Unknown identifier: StandardPurchasingModule. Then, I thought about a similar problem I had when I was updating my project for Unity Ads 2.0 (which I posted about in a thread linked here).
So I decided to download the last Unity IAP version from Asset Store, and I did run the installer. Then things started going really bad: the whole Unity Editor freezed. So I tried to restart Unity and reload the project. Now some of the Unity Editor windows fail to load:
- the Scene GameObjects list
- The scene view
From the errors in the console, the ones pasted below seem to be the most relevant:
TypeLoadException: Could not load type 'UnityEditor.SceneHierarchyWindow' from assembly 'UnityEditor, Version=0.0.0.0, [Culture=neutral, PublicKeyToken=null'.
TypeLoadException: Could not load type 'UnityEditor.SceneView' from assembly 'UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
It seems I made a big mess with the packages or something. Reverting to factory settings didn’t fix the problem.
EDIT:
When starting a new project, everything works fine. Maybe if I delete the imported assets from latest Unity IAP [v1.10] the project will be loaded normally again, so I will try now…
EDIT2:
After deleting the latest Unity IAP plugin manually from my Assets/Plugin folder, everything came back to normal. However…
I am still confused about how to proceed with Unity IAP integration at this point. Due to after installing Unity Ads 2.0, the Unity Ads services is not enabled from the Unity Services window anymore, could it colaterally affect the IAP on/off switch from the Services panel as well?
In other words, the point is: having Unity Ads 2.0 installed from Asset Store (obviously with embedded Unity Ads disabled), can I rely on built-in Unity IAP module, or else should I install the latest Unity IAP (v1.10) from the asset store?