Search Unity

UnityIAP requiring the VR module in WebGL builds

Discussion in 'Unity IAP' started by Nicolas1212, Mar 16, 2018.

  1. Nicolas1212

    Nicolas1212

    Joined:
    Dec 18, 2014
    Posts:
    139
    Hi,

    I'm building our project for WebGL, and using the build report site (http://files.unity3d.com/build-report/) to get an idea of what's in it.

    We're not currently supporting IAPs on web (does UnityIAP even do this?), but when I build with the UnityPurchasing module included, it seems to draw in the VR module, which in turn seems to draw in the Physics module (we use Physics2D, not Physics):

    https://imgur.com/a/wRKfr

    Building without UnityIAP (just deleting the UnityPurchasing folder, as I couldn't find a way to actually disable it), won't bring in VR:

    https://imgur.com/a/QQqIo

    I think it's related to this update:

    > " ## [1.9.0] - 2016-10-31
    - [Beta] Google Play - Support for Daydream VR. Requires Unity 5.4+ "GVR" Technical Preview, enabling VR, and including the Daydream SDK. Additional details [here](https://unity3d.com/partners/google/daydream)."​
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    When you import Unity IAP, make sure you choose to Update API when prompted. It should not be requiring VR.