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

UnityEngine.UnityPurchasing missing from documentation after 2018.2

Discussion in 'Documentation' started by CanisLupus, Jul 25, 2019.

  1. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    As you can see in the side bar of the Documentation, the UnityEngine.Purchasing namespace is not present:

    upload_2019-7-25_15-47-28.png

    Up until version 2018.2, we could access it and its classes, for example this one for IStoreController:
    https://docs.unity3d.com/2018.2/Documentation/ScriptReference/Purchasing.IStoreController.html

    We could also search for it:
    upload_2019-7-25_15-49-16.png
    However, after that version, including in the current 2019.1 version of the docs, this page does not exist:
    https://docs.unity3d.com/ScriptReference/Purchasing.IStoreController.html

    And searching yields this:
    upload_2019-7-25_15-48-45.png
    Was this moved elsewhere? We can't find it at all, and Google results only point to previous versions in the docs, like 2018.1 or 5.4.

    Best regards,
    Daniel
     
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,294
    Yeah, it's a package now, and packages has their own docs page.

    The easiest way to find it is to open the package manager in your project, find "In App Purchasing", and hit the "view documentation" button.
     
  3. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    Hey Baste, thank you very much for explaining this.

    The In App Purchasing package seems to send us to:
    https://docs.unity3d.com/Packages/com.unity.purchasing@2.0/index.html
    And redirects to:
    https://docs.unity3d.com/Manual/UnityIAP.html
    Which is a set of manual pages, so we still can't see the scripting reference.

    Searching for IStoreController here shows some pages in the results, but none for the scripting reference (although there are examples). If we want to see the documentation for a less used method like FetchAdditionalProducts, it's nowhere to be found (actually, we can't find the correct way to use this method anywhere, even on Google, but that's another problem).

    Is it supposed to be this hard? :p
     
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,294
    Yikes, they F***ed up.

    I'd ask over on the IAP forums.
     
  5. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    It sure seems that way! I'll be sure to ask there tomorrow. Thanks for the assistance. ;)