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

GameFoundationSettings PurchasingEnabled flag not work. I cant enable it

Discussion in 'Game Foundation' started by redpixelgamedev, Apr 9, 2021.

  1. redpixelgamedev

    redpixelgamedev

    Joined:
    Dec 5, 2020
    Posts:
    3
    Hi! Why flag Purchasing Enabled not work? He said "Unity Purchasing: Off", but is wrong. I enabled Unity IAP and install last version (3.0.2).

    upload_2021-4-10_1-36-51.png

    Somebody help please. How fix that?

    PS: Sorry for my english )
     
    erika_d likes this.
  2. erika_d

    erika_d

    Joined:
    Jan 20, 2016
    Posts:
    413
    Hi @redpixelgamedev

    Unity IAP 3.0.2 no longer sets the UNITY_PURCHASING editor define that we rely on in Game Foundation to know whether it is available to be used. We're developing a strategy to be able to support IAP 3.0.2 and later versions automatically, but until we have that in place, you'll need to manually add the UNITY_PURCHASING editor define to your project for when the IAP 3.0.2 package is installed. There is some information about how to do that here: https://docs.unity3d.com/Manual/class-AssemblyDefinitionImporter.html#version-defines

    Once that version define exists and is enabled, you should be able to check that Purchasing enabled box.
     
  3. redpixelgamedev

    redpixelgamedev

    Joined:
    Dec 5, 2020
    Posts:
    3
    Okay. Thank you so much! :)
     
    erika_d likes this.