Search Unity

Unity IAP on specific platforms only

Discussion in 'Unity IAP' started by coshea, Aug 24, 2018.

  1. coshea

    coshea

    Joined:
    Dec 20, 2012
    Posts:
    319
    Hi

    If you turn on Unity IAP in a project, that is for all platforms correct?

    You couldn't have it disabled on iOS but have IAP enabled in Unity?

    Thanks
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, that is correct. You could use #ifdefs to accomplish what you are looking for. You should see sample code in IAPDemo.cs.
     
  3. coshea

    coshea

    Joined:
    Dec 20, 2012
    Posts:
    319
    Thanks, so having IAP turned on at Unity Cloud level, not just script ifdefs, won't effect the version that doesn't have IAP in?
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    @coshea That is correct. Please check IAPDemo.cs for an example.
     
    Last edited: Aug 29, 2018