Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Package Manager vs Unity IAP

Discussion in 'Unity IAP' started by AppBite, Jul 18, 2020.

  1. AppBite

    AppBite

    Joined:
    Jul 5, 2012
    Posts:
    79
    In the Window --> Package Manager
    I apparently have In App Purchasing (com.unity.purchasing) installed
    v2.0.6 from April 03, 2019

    In the Window --> Unity IAP --> IAP Updates
    I'm being offered an update to [1.23.4] - 2020-07-13

    The latter v1.23.4 sounds better to me, as it's from 4 days ago.
    But I thought things were supposed to be through the Package Manager now? So this is a bit confusing.

    Should I keep both? Should I delete the Package Manager one, even though it's Package Manger, because it's over a year out of date?

    I'm using Unity v2019.4 LTS.
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    You can choose to remove the package from Package Manager and import the new IAP package from Asset Store or Services Window.
     
  3. AppBite

    AppBite

    Joined:
    Jul 5, 2012
    Posts:
    79
    Removed v2.06 via the Package Manager.
    Saved, exited, came back into Unity.
    Went to Services, In-App Purchasing, hit the Update button now I get 6 Critical errors

    Nuke the /Plugins/UnityPurchasing/ dir?

    Error: Could not load signature of UnityEditor.Purchasing.GooglePlayProductCatalogExporter:productTypeString due to: Could not load file or assembly 'UnityEngine.Purchasing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:UnityEngine.Purchasing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>
    0x00000001421A99AC (Unity) StackWalker::GetCurrentCallstack
    0x00000001421AD961 (Unity) StackWalker::ShowCallstack
    0x00000001408A6265 (Unity) GetStacktrace
    0x0000000142E28D7E (Unity) DebugStringToFile
    0x00000001420D452B (Unity) ScanForAttributesAndInterfaceImplementations
    0x00000001420E2936 (Unity) MonoManager::EndReloadAssembly
    0x00000001420E9217 (Unity) MonoManager::ReloadAssembly
    0x0000000140506647 (Unity) LoadDomainAndUserAssemblies
    0x0000000140509422 (Unity) RegisterScriptsAndTryLoadingExistingUserAssemblies
    0x0000000140A1BD44 (Unity) ImportAndPostprocessOutOfDateAssets
    0x0000000140A23A3B (Unity) RefreshInternalV2
    0x0000000140A266B6 (Unity) StopAssetImportingV2
    0x0000000140A1DAE6 (Unity) InitialScriptRefreshV2
    0x000000013FF56472 (Unity) Application::InitializeProject
    0x00000001408D5944 (Unity) WinMain
    0x00000001438C7032 (Unity) __scrt_common_main_seh
    0x0000000076EC59CD (kernel32) BaseThreadInitThunk
    0x00000000774A385D (ntdll) RtlUserThreadStart


    Assembly 'Assets/Plugins/UnityPurchasing/Bin/Editor.dll' will not be loaded due to errors:
    Unable to resolve reference 'UnityEngine.Purchasing'. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.
    Unable to resolve reference 'UnityEditor.Purchasing'. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.


    Assembly 'Assets/Plugins/UnityPurchasing/Bin/Stores.dll' will not be loaded due to errors:
    Unable to resolve reference 'UnityEngine.Purchasing'. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.
     
  4. AppBite

    AppBite

    Joined:
    Jul 5, 2012
    Posts:
    79
    Reimporting, Disabling, exiting Unity, re-Enabling has fixed the errors. Re-enabling seemed to do some type of rebuild, I saw com.unity.purchasing come up.
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    There is no need to touch Package Manager when updating IAP. IAP requires both an Asset component and a Package Manager package, but the install handles both. We plan to go to only Package Manager install later this year.
     
  6. nicolasgramlich

    nicolasgramlich

    Joined:
    Sep 21, 2017
    Posts:
    231
    Is this going to be a major version bump or how will we find out about this package manager only way?
     
  7. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    It will be announced on this forum as all releases are announced.
     
  8. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    390
    It doesn't look like Unity IAP 2.0.0 that was just released is a UPM package yet, just the UDP part? I'm curious what the current Unity Purchasing UPM package does (com.unity.purchasing)? Is it just an "installer" for the Asset Store UnityIAP unitypackage?
     
  9. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Correct, we just decoupled UDP in 2.0, it's a separate package now. Look for an all UPM in an upcoming release.